-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Template render error: (unknown path) #2581
Comments
As the error raised inside the render function(https://github.com/hexojs/hexo/blob/master/lib/extend/tag.js#L66), the path information has already lost. Another way to avoid this error is to get the version with the #2478 change (not in the main build). You could set a flag disable_nunjucks into _config.yml file to skip rendering tags. But this method is not recommended. For the Tag renderer, it uses the nunjucks template. So the bad character is usually I also could help you to identify the error files if those files are okay to share. |
@NoahDragon I think |
For the |
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Template render error: (unknown path) : hexojs/hexo#2581
Node version(
node -v
):6.10.2
Hexo and Plugin version(
npm ls --depth 0
):├── hexo@3.3.5
├── hexo-generator-feed@1.2.0
├── hexo-generator-index@0.2.1
├── hexo-generator-seo-friendly-sitemap@0.0.21
├── hexo-generator-tag@0.2.0
├── hexo-renderer-ejs@0.2.0
├── hexo-renderer-marked@0.2.11
└── hexo-server@0.2.0
I'm working on a big site (near 10000 posts and more than 100000 tags) based on Hexo. It's return below error after 1 hour process:
Suggestion: I think it's better to return bad file path for simpler debug on any error rather than
Template render error: (unknown path)
message.Question 1: How we can find which file cause this error now?
Question 2: Can you list bad character in post file (Front matter and markdown part)?
Now I remove
&
|
and*
from tags because it cause error for me and also remove<
>
{
}
]
and[
from markdown file content. Can you help me to complete this list?Related Issues: #2384 , #1837
The text was updated successfully, but these errors were encountered: