metalsmith-jekyll-frontmatter

1.0.0 • Public • Published

metalsmith-jekyll-frontmatter

This is a plugin for Metalsmith that allows adding front matter to each static files that will be serve/regenerate by Jekyll.

Usage

This plugin matches files using the minimatch pattern and and add Jekyll front matter to the content of any matched files.

If using the CLI for Metalsmith, metalsmith-jekyll-frontmatter can be used like any other plugin by including it in metalsmith.json. For example:

{
  "plugins": {
    "metalsmith-jekyll-frontmatter": {
     pattern: "**/**"
    }
  }
}

For Metalscript's JavaScript API, metalsmith-jekyll-frontmatter can be used like any other plugin, by attaching it to the function invocation chain on the Metalscript object. For example:

var jekyllFrontMatter = require('metalsmith-jekyll-frontmatter');
require('metalsmith')(__dirname)
  .use(jekyllFrontMatter({
   pattern: "**/**"
  })
  .build();

License

MIT, see LICENSE.

Readme

Keywords

none

Package Sidebar

Install

npm i metalsmith-jekyll-frontmatter

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • prevole