New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set next's _config.yml when using hexo-next #16

Closed
sli1989 opened this Issue Jan 4, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@sli1989

sli1989 commented Jan 4, 2018

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:
  1. mathjax: enable: true in the theme's _config.yml,
  2. npm uninstall hexo-renderer-marked --save
  3. npm install hexo-renderer-pandoc --save
  4. hexo g failed
  5. Remove the if(config.template) args.push("--template=" + config.template); in hexo\node_modules\hexo-renderer-pandoc\index.js ,
  6. hexo g passed
@sli1989

This comment has been minimized.

sli1989 commented Jan 9, 2018

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:

@wzpan wzpan closed this Feb 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment