Skip to content

SoftEng-HEIGVD/metalsmith-jekyll-frontmatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Metalsmith plugin to add front matters in static files for Jekyll

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published