A metalsmith plugin to skip files. Based on metalsmith-drafts, but allows arbitrary keys (not just draft
).
$ npm install metalsmith-skip
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
.
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
.
MIT