how to set next's _config.yml when using hexo-next
sli1989 opened this issue · 1 comments
sli1989 commented
in version 0.2.1, adding if(config.template) args.push("--template=" + config.template);
leads to TypeError: Cannot read property 'template' of undefined
when hexo generate
...
how to set pandoc in _config.yml
, thank you for your help.
pandoc:
filters:
extra:
template:
meta:
mathEngine:
mathjax: enable: true
in the theme's_config.yml
,npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-pandoc --save
hexo g
failed- Remove
the if(config.template) args.push("--template=" + config.template);
inhexo\node_modules\hexo-renderer-pandoc\index.js
, hexo g
passed
sli1989 commented
you can close the issue.
if you want to use hexo-renderer-pandoc
(new version) in hexo , you must add default configuration in the site's _config.yml
not the theme's.
pandoc:
filters:
extra:
template:
meta:
mathEngine: