Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-draft-tags

npm version

A hexo plugin which adds draft tags to isolate markdown text within a post that should be considered 'draft'.

This text will not be rendered in the production version of your site, but will be rendered when the site is run using:

hexo server --draft

Installation

Installation of the plugin is best managed via npm. Run the following to install the plugin:

npm i hexo-draft-tags

The latest release can also be found here.

Usage

To mark draft text, use the 'draft' tag. End the draft section with the 'enddraft' tag.

# Post title

This text should be shown in --draft mode and in production.

{% draft %}

This text should only be shown in --draft mode.

{% enddraft %}

About

A hexo plugin which adds draft tags to isolate markdown text within a post that should be considered 'draft'

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages