问题描述
Nunjucks Error expected variable end解决办法
hexo g
,hexo s
都报错
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.htmlNunjucks Error: [Line 78, Column 29] expected variable end
出错截图:
解决办法
官网描述如下(https://hexo.io/docs/troubleshooting.html):
翻译过来就是: 转义内容 Hexo使用Nunjucks渲染帖子(较早的版本使用Swig,它们具有相似的语法)。用{ { } }
或{ % % }
包装的内容将被解析,并可能导致问题。您可以使用原始标签插件包装