0
$ hexo g -d
INFO  Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 7, Column 23]
  Error: Unable to call `the return value of (posts["first"])["updated"]["toISOString"]`, which is undefined or falsey
    at Object.exports.prettifyError (D:\hexo\node_modules\nunjucks\src\lib.js:34:15)
    at D:\hexo\node_modules\nunjucks\src\environment.js:486:31
    at new_cls.root [as rootRenderFunc] (eval at _compile (D:\hexo\node_modules\nunjucks\src\environment.js:565:24), <anonymous>:161:3)
    at new_cls.render (D:\hexo\node_modules\nunjucks\src\environment.js:479:15)
    at Hexo.module.exports (D:\hexo\node_modules\hexo-generator-feed\lib\generator.js:28:22)
    at Hexo.tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (D:\hexo\node_modules\bluebird\js\release\method.js:15:34)
    at D:\hexo\node_modules\hexo\lib\hexo\index.js:337:24
    at tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (D:\hexo\node_modules\bluebird\js\release\map.js:61:38)
    at MappingPromiseArray.PromiseArray._iterate (D:\hexo\node_modules\bluebird\js\release\promise_array.js:114:31)
    at MappingPromiseArray.init (D:\hexo\node_modules\bluebird\js\release\promise_array.js:78:10)
    at MappingPromiseArray._asyncInit (D:\hexo\node_modules\bluebird\js\release\map.js:30:10)
    at Async._drainQueue (D:\hexo\node_modules\bluebird\js\release\async.js:138:12)
    at Async._drainQueues (D:\hexo\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.Async.drainQueues (D:\hexo\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 7, Column 23]
  Error: Unable to call `the return value of (posts["first"])["updated"]["toISOString"]`, which is undefined or falsey
Template render error: (unknown path) [Line 7, Column 23]
  Error: Unable to call `the return value of (posts["first"])["updated"]["toISOString"]`, which is undefined or falsey
    at Object.exports.prettifyError (D:\hexo\node_modules\nunjucks\src\lib.js:34:15)
    at D:\hexo\node_modules\nunjucks\src\environment.js:486:31
    at new_cls.root [as rootRenderFunc] (eval at _compile (D:\hexo\node_modules\nunjucks\src\environment.js:565:24), <anonymous>:161:3)
    at new_cls.render (D:\hexo\node_modules\nunjucks\src\environment.js:479:15)
    at Hexo.module.exports (D:\hexo\node_modules\hexo-generator-feed\lib\generator.js:28:22)
    at Hexo.tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (D:\hexo\node_modules\bluebird\js\release\method.js:15:34)
    at D:\hexo\node_modules\hexo\lib\hexo\index.js:337:24
    at tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (D:\hexo\node_modules\bluebird\js\release\map.js:61:38)
    at MappingPromiseArray.PromiseArray._iterate (D:\hexo\node_modules\bluebird\js\release\promise_array.js:114:31)
    at MappingPromiseArray.init (D:\hexo\node_modules\bluebird\js\release\promise_array.js:78:10)
    at MappingPromiseArray._asyncInit (D:\hexo\node_modules\bluebird\js\release\map.js:30:10)
    at Async._drainQueue (D:\hexo\node_modules\bluebird\js\release\async.js:138:12)
    at Async._drainQueues (D:\hexo\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.Async.drainQueues (D:\hexo\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)

链接描述
我参考这里的做法,把MD文件删除了还是不行.....
今天不知道为什么hexo网站上不去...........

Toywt 6
2017-03-10 提问
2 个回答
2

已采纳

找到解决方法了,这个是hexo转义时候发生的错误,你文章中可能出现了{{}},{% %}。你可以将出现的代码,用 `进行注释下就可以了。

0

使用hexo d —g

撰写答案

推广链接