https://github.com/mamboer/hexo-renderer-j2
Nunjucks renderer plugin for Hexo.
https://github.com/mamboer/hexo-renderer-j2
Last synced: 3 months ago
JSON representation
Nunjucks renderer plugin for Hexo.
- Host: GitHub
- URL: https://github.com/mamboer/hexo-renderer-j2
- Owner: mamboer
- License: mit
- Created: 2015-11-21T08:56:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-12T07:18:39.000Z (over 7 years ago)
- Last Synced: 2025-02-11T15:13:06.096Z (3 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-renderer-j2
[Nunjucks](https://mozilla.github.io/nunjucks/) renderer plugin for [Hexo](https://hexo.io).
Inspired by [hexo-renderer-nunjucks](https://github.com/morrisallison/hexo-renderer-nunjucks).
## Installation
```
npm install hexo-renderer-j2 --save
```## Configuration
Nunjucks can be configured by editing the main `_config.yml` file using the `nunjucks` namespace. Configuration options can be found in [Nunjucks API documentation](http://mozilla.github.io/nunjucks/api.html#configure).
```
nunjucks:
autoescape: true
```## File Extensions
This plugin supports the extensions as bellow:
1. `.nunjucks` file extension
2. `.j2` Jinja 2 file extension
3. `.tpl` custom template file extension