This is a plugin for Metalsmith that allows adding front matter to each static files that will be serve/regenerate by Jekyll.
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();
MIT, see LICENSE.