From cb5a8e43ea5eb1472811fa41f7c34c714d957d98 Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Thu, 28 Aug 2014 16:59:04 -0400 Subject: [PATCH] added last usage step of using drafts front-matter --- Readme.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 8642417..9da210d 100644 --- a/Readme.md +++ b/Readme.md @@ -19,9 +19,11 @@ } ``` + 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'); @@ -29,6 +31,8 @@ var drafts = require('metalsmith-drafts'); metalsmith.use(drafts()); ``` + Then in your files YAML front-matter add `draft: true`. + ## License - MIT \ No newline at end of file + MIT