-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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-renderer-pandoc [solved] #10
Comments
Can u please provaide all possible links to same issue from @iissnan repo to close them later? |
@ivan-nginx the lists of opened issues: #2024,#1637,#2058 |
@sli1989 Thank you! |
So, what about here? |
still need to Romove the
|
@sli1989 so, we can post this issue in Oooh, already done. Well, need just to wait response from author. |
i have report the issue in that repo. |
in the new version of |
This is only readme commit. Need to see this. And as i see need just to comment pandoc:
filters:
extra:
# template:
meta:
mathEngine: P.S. Not romove, but remove — 去掉 — Удалить. |
still |
Try to change this: - if(config.template) args.push("--template=" + config.template);
+ if(config.template) {
+ args.push("--template=" + config.template);
+ } |
if change the file, just comment it. |
@ivan-nginx you can close the issue.
|
@sli1989 so, all works as i saw before? Let me repeat this steps:
That's right? |
yes, just Add default configuration in root Hexo |
I agree and want to create new issue
Expected behavior
hexo generate successfully and completely display equation
Actual behavior
when using
hexo-renderer-pandoc
(new version 0.2.1) in next (version 5.1.4 and 6.0.0), addingif(config.template) args.push("--template=" + config.template);
inindex.js
leads toTypeError: Cannot read property 'template' of undefined
whenhexo generate
...Remove the
if(config.template) args.push("--template=" + config.template);
, it works.On the other hand, according to the guideline in hexo-renderer-pandoc how to set pandoc
_config.yml
to avoid the undefined oftemplate
, thank you for your help.the guideline in hexo-renderer-pandoc:
template
is a template file you wish to use when pandoc generates your posts:will be passed to pandoc as
--template=dir/../template.html
The path of the template should be relative to the root of your blog.
For example, the very simple template
prepends table of contents to all your posts if variable
--toc
is also passed. To enable TOC, add to your_config.yml
:besides, the menu bar & it's icon/Site'description/pages toc are all gone in next (version 6.0.0) may due to personalized setting...
the lists of personalized setting in next:
Steps to reproduce the behavior
TypeError: Cannot read property 'template' of undefined
whenhexo generate
hexo generate
Node.js and NPM Information
Hexo Information
Package dependencies Information
NexT Information
NexT Version:
NexT Scheme:
Other Information
The text was updated successfully, but these errors were encountered: