Nunjucks renderer plugin for Hexo.
Inspired by hexo-renderer-nunjucks.
npm install hexo-renderer-j2 --save
Nunjucks can be configured by editing the main _config.yml
file using the nunjucks
namespace. Configuration options can be found in Nunjucks API documentation.
nunjucks:
autoescape: true
This plugin supports the extensions as bellow:
.nunjucks
file extension.j2
Jinja 2 file extension.tpl
custom template file extension