0.1.1 • Published 3 years ago

hexo-draft-tags v0.1.1

Weekly downloads
-
License
CC-BY-4.0
Repository
github
Last release
3 years ago

hexo-draft-tags

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 %}
0.1.1

3 years ago

0.1.0

3 years ago

1.0.0

3 years ago