Skip to content

Assemble middleware (v0.5.0) for preventing drafts from being rendered.

License

Notifications You must be signed in to change notification settings

ghost-town/assemble-middleware-drafts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assemble-middleware-drafts NPM version

Assemble middleware (v0.5.0) for preventing drafts from being rendered.

Upgrade notice!: as of v0.1.0, this middlweare requires Assemble v0.5.0.

Install

Install with npm:

npm i assemble-middleware-drafts --save-dev

Usage

First, register the middleware with Assemble:

options: {
  middleware: ['assemble-middleware-drafts']
}

To prevent a page from rendering, either defined published: false or drafts: true in the front matter of the page:

---
published: false
title: My Unfinished Blog Post
---

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on May 03, 2014.

About

Assemble middleware (v0.5.0) for preventing drafts from being rendered.

Resources

License

Stars

Watchers

Forks

Packages

No packages published