Skip to content

Commit

Permalink
Merge pull request #1 from BretFisher/master
Browse files Browse the repository at this point in the history
added last usage step of using drafts front-matter
  • Loading branch information
ianstormtaylor committed Jul 11, 2015
2 parents d2b0919 + cb5a8e4 commit 24a26be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@
}
```

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

## Javascript Usage

Pass the plugin to `Metalsmith#use`:
Pass the plugin to `Metalsmith#use`, like so:

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

metalsmith.use(drafts());
```

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

## License

MIT
MIT

0 comments on commit 24a26be

Please sign in to comment.