Skip to content

contentascode/metalsmith-keep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-skip

A metalsmith plugin to skip files. Based on metalsmith-drafts, but allows arbitrary keys (not just draft).

Installation

$ npm install metalsmith-skip

CLI Usage

Install via npm and then add the metalsmith-skip key to your metalsmith.json plugins, like so:

{
  "plugins": {
    "metalsmith-skip": {
      "keys": ["skip", "draft"]
    }
  }
}

Then in your files YAML front-matter add draft: true.

Javascript Usage

Pass the plugin to Metalsmith#use, like so:

var skip = require('metalsmith-skip');

metalsmith.use(skip({keys: ["skip", "draft"]));

Then in your files YAML front-matter add skip: true.

License

MIT

About

Metalsmith plugin to keep files based on metadata (invert of metalsmith-skip)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •