sanonz / hexo-theme-concise

Hexo 简约主题,响应式设计支持 PC、平板、手机等设备,代码高亮使用 monokai-sublime 风格,支持亮/暗色主题跟随系统。可以最低兼容到 IE8。
https://sanonz.github.io
MIT License
171 stars 38 forks source link

静态编译后出错 #18

Open kookliu opened 6 years ago

kookliu commented 6 years ago

$ hexo g INFO Start processing INFO Files loaded in 111 ms ERROR /Users/jialj/GitHub/jiazhe/themes/concise/layout/post.ejs:3 1| <%- partial('_partial/article', {post: page, view: true}) %> 2|

3| <% if( theme.disqus.enable && page.comments ) { %> 4| <%- partial('_partial/comments', {post: page}) %> 5| <% } %> 6|

Cannot read property 'enable' of undefined TypeError: /Users/jialj/GitHub/jiazhe/themes/concise/layout/post.ejs:3 1| <%- partial('_partial/article', {post: page, view: true}) %> 2|

3| <% if( theme.disqus.enable && page.comments ) { %> 4| <%- partial('_partial/comments', {post: page}) %> 5| <% } %> 6|

Cannot read property 'enable' of undefined at eval (eval at compile (/Users/jialj/GitHub/jiazhe/node_modules/ejs/lib/ejs.js:618:12), :12:25) at returnedFn (/Users/jialj/GitHub/jiazhe/node_modules/ejs/lib/ejs.js:653:17) at Theme._View.View._compiled.locals [as _compiled] (/Users/jialj/GitHub/jiazhe/node_modules/hexo/lib/theme/view.js:124:48) at Theme._View.View.View.render (/Users/jialj/GitHub/jiazhe/node_modules/hexo/lib/theme/view.js:29:15) at route.set (/Users/jialj/GitHub/jiazhe/node_modules/hexo/lib/hexo/index.js:386:29) at tryCatcher (/Users/jialj/GitHub/jiazhe/node_modules/bluebird/js/release/util.js:16:23) at /Users/jialj/GitHub/jiazhe/node_modules/bluebird/js/release/method.js:15:34 at RouteStream._read (/Users/jialj/GitHub/jiazhe/node_modules/hexo/lib/hexo/router.js:134:3) at RouteStream.Readable.read (_streamreadable.js:449:10) at resume (_stream_readable.js:888:12) at process._tickCallback (internal/process/next_tick.js:63:19)

sanonz commented 6 years ago

是不是第二步没做 https://github.com/sanonz/hexo-theme-concise#%E5%88%87%E6%8D%A2