hexo 3.x版本,具体版本号下面贴出,将这个代码https://github.com/jserme/mahua放进source目录后,无论skip_render参数如何设置,无论系统是linux还是windows,执行hexo g的时候都会出现如下错误:
E:\blog>hexo g
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do
cs/troubleshooting.html
Template render error: expected variable end
at Error.exports.TemplateError (E:\blog\node_modules\hexo\node_modules\nunju
cks\src\lib.js:51:19)
at Object.extend.fail (E:\blog\node_modules\hexo\node_modules\nunjucks\src\p
arser.js:64:15)
at Object.extend.advanceAfterVariableEnd (E:\blog\node_modules\hexo\node_mod
ules\nunjucks\src\parser.js:133:18)
at Object.extend.parseNodes (E:\blog\node_modules\hexo\node_modules\nunjucks
\src\parser.js:1159:22)
at Object.extend.parseAsRoot (E:\blog\node_modules\hexo\node_modules\nunjuck
s\src\parser.js:1177:42)
at Object.module.exports.parse (E:\blog\node_modules\hexo\node_modules\nunju
cks\src\parser.js:1199:18)
at Object.module.exports.compile (E:\blog\node_modules\hexo\node_modules\nun
jucks\src\compiler.js:1118:48)
at Obj.extend._compile (E:\blog\node_modules\hexo\node_modules\nunjucks\src\
environment.js:444:35)
at Obj.extend.compile (E:\blog\node_modules\hexo\node_modules\nunjucks\src\e
nvironment.js:433:18)
at null.<anonymous> (E:\blog\node_modules\hexo\node_modules\nunjucks\src\env
ironment.js:378:22)
at Object.exports.withPrettyErrors (E:\blog\node_modules\hexo\node_modules\n
unjucks\src\lib.js:24:16)
at Obj.extend.render (E:\blog\node_modules\hexo\node_modules\nunjucks\src\en
vironment.js:374:20)
at Obj.extend.renderString (E:\blog\node_modules\hexo\node_modules\nunjucks\
src\environment.js:261:21)
at E:\blog\node_modules\hexo\lib\extend\tag.js:56:9
at tryCatcher (E:\blog\node_modules\hexo\node_modules\bluebird\js\main\util.
js:24:31)
at Promise._resolveFromResolver (E:\blog\node_modules\hexo\node_modules\blue
bird\js\main\promise.js:427:31)
at new Promise (E:\blog\node_modules\hexo\node_modules\bluebird\js\main\prom
ise.js:53:37)
at Tag.render (E:\blog\node_modules\hexo\lib\extend\tag.js:55:10)
at E:\blog\node_modules\hexo\lib\hexo\post.js:320:16
at tryCatcher (E:\blog\node_modules\hexo\node_modules\bluebird\js\main\util.
js:24:31)
at Promise._settlePromiseFromHandler (E:\blog\node_modules\hexo\node_modules
\bluebird\js\main\promise.js:454:31)
at Promise._settlePromiseAt (E:\blog\node_modules\hexo\node_modules\bluebird
\js\main\promise.js:530:18)
at Async._drainQueue (E:\blog\node_modules\hexo\node_modules\bluebird\js\mai
n\async.js:182:12)
at Async._drainQueues (E:\blog\node_modules\hexo\node_modules\bluebird\js\ma
in\async.js:187:10)
at Immediate.Async.drainQueues [as _onImmediate] (E:\blog\node_modules\hexo\
node_modules\bluebird\js\main\async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:358:17)
hexo 版本号:
E:\blog>hexo --version
hexo: 3.0.1
os: Windows_NT 6.3.9600 win32 x64
http_parser: 2.3
node: 0.12.4
v8: 3.28.71.19
uv: 1.5.0
zlib: 1.2.8
modules: 14
openssl: 1.0.1m
具体情况及讨论内容见http://xuanwo.org/2014/08/14/hexo-usual-problem/#comment-2073484518
之前使用hexo 2.8没有遇到这个问题,谢谢