A metalsmith plugin to hide drafts.
JavaScript Makefile
Switch branches/tags
Nothing to show
Latest commit 24a26be Jul 11, 2015 @ianstormtaylor ianstormtaylor Merge pull request #1 from BretFisher/master
added last usage step of using drafts front-matter
Permalink
Failed to load latest commit information.
lib first commit Feb 5, 2014
test first commit Feb 5, 2014
.gitignore first commit Feb 5, 2014
History.md first commit Feb 5, 2014
Makefile first commit Feb 5, 2014
Readme.md added last usage step of using drafts front-matter Aug 28, 2014
package.json first commit Feb 5, 2014

Readme.md

metalsmith-drafts

A metalsmith plugin to hide drafts.

Installation

$ npm install metalsmith-drafts

CLI Usage

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

{
  "plugins": {
    "metalsmith-drafts": true
  }
}

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

Javascript Usage

Pass the plugin to Metalsmith#use, like so:

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

metalsmith.use(drafts());

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

License

MIT