hexo 异常处理

来源:互联网 发布:java常用集合类 编辑:程序博客网 时间:2024/07/17 03:00

异常内容

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.htmlTemplate render error: (unknown path) [Line 1, Column 12]  unknown block tag: aplayer    at Object.exports.prettifyError (D:\myblog\blog\node_modules\nunjucks\src\lib.js:34:15)    at new_cls.render (D:\myblog\blog\node_modules\nunjucks\src\environment.js:469:27)    at new_cls.renderString (D:\myblog\blog\node_modules\nunjucks\src\environment.js:327:21)    at D:\myblog\blog\node_modules\hexo\lib\extend\tag.js:66:9    at Promise._execute (D:\myblog\blog\node_modules\bluebird\js\release\debuggability.js:300:9)    at Promise._resolveFromExecutor (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:481:18)    at new Promise (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:77:14)    at Tag.render (D:\myblog\blog\node_modules\hexo\lib\extend\tag.js:64:10)    at Object.tagFilter [as onRenderEnd] (D:\myblog\blog\node_modules\hexo\lib\hexo\post.js:253:16)    at D:\myblog\blog\node_modules\hexo\lib\hexo\render.js:65:19    at tryCatcher (D:\myblog\blog\node_modules\bluebird\js\release\util.js:16:23)    at Promise._settlePromiseFromHandler (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:510:31)    at Promise._settlePromise (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:567:18)    at Promise._settlePromise0 (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:612:10)    at Promise._settlePromises (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:691:18)    at Async._drainQueue (D:\myblog\blog\node_modules\bluebird\js\release\async.js:133:16)    at Async._drainQueues (D:\myblog\blog\node_modules\bluebird\js\release\async.js:143:10)    at Immediate.Async.drainQueues (D:\myblog\blog\node_modules\bluebird\js\release\async.js:17:14)    at runCallback (timers.js:651:20)    at tryOnImmediate (timers.js:624:5)    at processImmediate [as _immediateCallback] (timers.js:596:5)FATAL (unknown path) [Line 1, Column 12]  unknown block tag: aplayerTemplate render error: (unknown path) [Line 1, Column 12]  unknown block tag: aplayer    at Object.exports.prettifyError (D:\myblog\blog\node_modules\nunjucks\src\lib.js:34:15)    at new_cls.render (D:\myblog\blog\node_modules\nunjucks\src\environment.js:469:27)    at new_cls.renderString (D:\myblog\blog\node_modules\nunjucks\src\environment.js:327:21)    at D:\myblog\blog\node_modules\hexo\lib\extend\tag.js:66:9    at Promise._execute (D:\myblog\blog\node_modules\bluebird\js\release\debuggability.js:300:9)    at Promise._resolveFromExecutor (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:481:18)    at new Promise (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:77:14)    at Tag.render (D:\myblog\blog\node_modules\hexo\lib\extend\tag.js:64:10)    at Object.tagFilter [as onRenderEnd] (D:\myblog\blog\node_modules\hexo\lib\hexo\post.js:253:16)    at D:\myblog\blog\node_modules\hexo\lib\hexo\render.js:65:19    at tryCatcher (D:\myblog\blog\node_modules\bluebird\js\release\util.js:16:23)    at Promise._settlePromiseFromHandler (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:510:31)    at Promise._settlePromise (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:567:18)    at Promise._settlePromise0 (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:612:10)    at Promise._settlePromises (D:\myblog\blog\node_modules\bluebird\js\release\promise.js:691:18)    at Async._drainQueue (D:\myblog\blog\node_modules\bluebird\js\release\async.js:133:16)    at Async._drainQueues (D:\myblog\blog\node_modules\bluebird\js\release\async.js:143:10)    at Immediate.Async.drainQueues (D:\myblog\blog\node_modules\bluebird\js\release\async.js:17:14)    at runCallback (timers.js:651:20)    at tryOnImmediate (timers.js:624:5)    at processImmediate [as _immediateCallback] (timers.js:596:5)

原因

这类异常一般是文章中使用了大括号 { } 这个特殊字符,且没有转义导致编译不通过

解决方案

可以参考Markdown语法第(0)章-特殊字符 将 { } 的大括号通过
{ } 进行转换

0 0
原创粉丝点击