hexo generate遇到了问题 Template render error
这个错误很磨人啊 我卸载了hexo重新安装 如果new文章就会出现 不知道为何
报错信息如下:
<pre>FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: unknown block tag: ld
at Error.exports.TemplateError (/Users/wsgdrfz/blog/node_modules/nunjucks/src/lib.js:51:19)
at Object.extend.fail (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:64:15)
at Object.extend.parseStatement (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:544:18)
at Object.extend.parseNodes (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:1151:30)
at Object.extend.parseAsRoot (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:1177:42)
at Object.module.exports.parse (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:1199:18)
at Object.module.exports.compile (/Users/wsgdrfz/blog/node_modules/nunjucks/src/compiler.js:1118:48)
at Obj.extend._compile (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:444:35)
at Obj.extend.compile (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:433:18)
at null.<anonymous> (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:378:22)
at Object.exports.withPrettyErrors (/Users/wsgdrfz/blog/node_modules/nunjucks/src/lib.js:24:16)
at Obj.extend.render (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:374:20)
at Obj.extend.renderString (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:261:21)
at /Users/wsgdrfz/blog/node_modules/hexo/lib/extend/tag.js:56:9
at tryCatcher (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/util.js:26:23)
at Promise._resolveFromResolver (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:480:31)
at new Promise (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:70:37)
at Tag.render (/Users/wsgdrfz/blog/node_modules/hexo/lib/extend/tag.js:55:10)
at Object.tagFilter [as onRenderEnd] (/Users/wsgdrfz/blog/node_modules/hexo/lib/hexo/post.js:253:16)
at /Users/wsgdrfz/blog/node_modules/hexo/lib/hexo/render.js:55:19
at tryCatcher (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromises (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
</pre><code>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
你的MD文件里是不是有
ld
这个标签?文章中使用了大括号 { } 这个特殊字符,且没有转义导致编译不通过
将 { } 的大括号通过{ } 进行转换
请问你找到答案了么?我也碰到这样的错误了
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.htm
l
Template render error: unknown block tag: gp
njuckssrclib.js:51:19)
cparser.js:64:15)
unjuckssrcparser.js:544:18)
我出现这个情况是由于,我先加了一个MD文件,我把这个MD文件删了之后,从新部署就正确了,可以肯定的是MD文件 出的问题 包含了PK
<div ng-controller = 'child1'>
</div>
在模板语法两边用
进行注释即可 ESC下面的键
看下是不是有写{% ld %}?