hexo-draft-tags

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hexo-draft-tags

Weekly Downloads

9

Version

0.1.1

License

CC-BY-4.0

Unpacked Size

3.19 kB

Total Files

5

Last publish

Collaborators

  • callumhewitt