1.0.0 • Published 9 years ago

metalsmith-jekyll-frontmatter v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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.