Socket
Socket
Sign inDemoInstall

@jungvonmatt/cssg-plugin-grow

Package Overview
Dependencies
313
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jungvonmatt/cssg-plugin-grow

Contentful-ssg plugin for grow


Version published
Weekly downloads
69
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

1.14.2 (2024-06-01)

Bug Fixes

  • chore: install missing tar dependency (8aba017)
  • chore: revert: use lerna@8.1.2 while waiting for a fix (997598a), closes lerna/lerna#4005
  • sec: patch localtunnel (#74) (640e7e5)

Readme

Source

cssg-plugin-grow

Provides support for the grow static site generator.

This plugin handles some common configuration requirements when using the grow static site generator.

  • Prepends a $ in the yaml front matter to 'special' internal fields like slug, title, date, etc. (slug -> $slug) so they will be processed by grow.
  • Writes blueprint.yml files for the content-types configured in the typeConfig setting.
  • Resolves links to other entries using grow's yaml constructors. See https://grow.dev/reference/documents/#constructors

Install

npm install @jungvonmatt/cssg-plugin-grow

How to use

// In your contentful-ssg.config.js
plugins: [
  {
    resolve: `@jungvonmatt/cssg-plugin-grow`,
    options: {
      // Add any options here
    },
  },
];

Options

NameTypeDefaultDescription
typeConfigObjectundefinedPass a map with e.g. grow's blueprint config ({: {$path: '...', $view: '...'}})

For example, to mark the content types t-category and t-article as documents which require a blueprint config:

// In your contentful-ssg.config.js
plugins: [
  {
    resolve: `@jungvonmatt/cssg-plugin-grow`,
    options: {
      typeConfig: {
        't-category': {
          view: '/views/t-category.html',
          path: '/{locale}/{slug}/',
        },
        't-article': {
          view: '/views/t-article.html',
          path: '/{locale}/{slug}/',
        },
      },
    },
  },
];

FAQs

Last updated on 01 Jun 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc