这个错误很磨人啊 我卸载了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>
Does your MD file have the tag
ld
?Have you found the answer? I also encountered this error
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)
This happened to me because I added an MD file first. After I deleted the MD file, the re-deployment was correct. It is certain that the problem with the MD file contains the PK
<p ng-controller = 'child1'>
</p>
Just use
on both sides of the template syntax to comment the key under ESC