Closed zh-Closure closed 7 months ago
I guess you are using the old version of hexo. Please use the latest version.
https://github.com/hexojs/hexo/commit/c1c5aaaf95552f009f9d35a78f0e3b395866e7b8 had make some changes in this problem. In hexo@7.1.1 , if you use the incomplete nunjuck tag {#}
, nunjuck will throw error.
Duplicate of #5301
Check List
hexo version
to check)Expected behavior
Displaying the rest of the content normally.
Actual behavior
When using hexo g to generate static web pages, if there is '{#' in the source file, a truncation issue may occur, and the subsequent content will not be displayed.
How to reproduce?
By writing {#} in the markdown file and triggering hexo g.
Is the problem still there under
Safe mode
?I used --safe, but the problem still exists.
Your Node.js & npm version
Your Hexo and Plugin version
No response
Your
package.json
No response
Your site's
_config.yml
(Optional)No response
Others
No response