jacman icon indicating copy to clipboard operation
jacman copied to clipboard

hexo-3.2.0-无法使用

Open RunCross opened this issue 9 years ago • 1 comments

嗯,我新安装了 hexo ,然后 使用了您的主题,但是在 hexo g的时候,会报很多错。 jacman

Cannot read property 'enable' of undefined


Unhandled rejection TypeError: D:\blog\themes\jacman\layout\layout.ejs:75
    73|     <body>
    74|       <header>
 >> 75|         <%- partial('_partial/header') %>
    76|       </header>
    77|       <div id="container">
    78|         <%- body %>

类似这种,hexo 自带的默认主题可以用。

hexo: 3.2.0 hexo-cli: 1.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

RunCross avatar Apr 21 '16 07:04 RunCross

主题配置文件缺少了一些配置项导致的。

尝试添加下面的

imglogo:
  enable: false             ## display image logo true/false.

试试

wuchong avatar Apr 26 '16 11:04 wuchong