hexo-renderer-nunjucks

Add support for Nunjucks templates to Hexo websites

Showing:

Popularity

Downloads/wk

218

GitHub Stars

2

Maintenance

Last Commit

1mo ago

Contributors

5

Package

Dependencies

3

Size (min+gzip)

411.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

hexo-renderer-nunjucks

Build Status NPM version Coverage Status

Add support for Nunjucks templates to Hexo websites.

All template files suffixed with .njk or .j2 (Jinja2) will be converted to HTML pages.

Installation

Note: this module is installed by default since hexo@5.x.
For other Hexo versions, run the following command in an Hexo project folder of yours.

$ npm install hexo-renderer-nunjucks

Development

Testing

Tests and code coverage are generated when running the following command.

npm test

Pull Requests will be checked automatically with Coveralls. Their bot will comment about the coverage change as a comment to the code change.

Releasing a new version

A bug fix and non-breaking code release can be created with the following commands:

npm version patch
git push && git push --tags

Read npm version documentation to learn more about other companion commands, such as npm version major (breaking change) and npm version minor (features, new stuff), amongst others.

Publishing on npm

This package is automatically published on npm as hexo-renderer-nunjucks for every new Git tag.

Two secrets environment variables need to be setup in Travis CI Repo Settings :

Description
NPM_USER_EMAILEmail of the npm user account with write access to hexo-renderer-nunjucks.
NPM_API_KEYAPI Token associated to the aforementioned user.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100