hexo-theme-material icon indicating copy to clipboard operation
hexo-theme-material copied to clipboard

第一次使用就报错

Open kitmanten opened this issue 4 years ago • 5 comments

ERROR Render HTML failed: 2020/05/20/hello-world/index.html TypeError: D:\Program\Blog\themes\material\layout\layout.ejs:3 1| 2| <html style="display: none;" <% if(config.language !== null) { %>lang="<%- config.language.substring(0,2) %>"<% } %>>

3| <%- partial('_partial/head') %> 4| 5| <% if(page.layout === 'gallery') { %> 6|

kitmanten avatar May 21 '20 12:05 kitmanten

没有做任何操作除了重命名配置文件

kitmanten avatar May 21 '20 12:05 kitmanten

image 我也是,没有做任何操作除了重命名配置文件

dingww avatar Jun 04 '20 02:06 dingww

这个应该是没有设置评论系统导致的,可以先配置下

Moersity avatar Jun 05 '20 14:06 Moersity

可参考这个issue解决: https://github.com/bolnh/hexo-theme-material/issues/686

jingyig01 avatar Jun 06 '20 04:06 jingyig01

image 我也是,没有做任何操作除了重命名配置文件

这个是因为hexo新版本中,把url_for 放到了dist文件夹下 全局搜索下面的的字符串,然后修改

“../../../../node_modules/hexo/lib/plugins/helper/url_for“ 修改成 “../../../../node_modules/hexo/dist/plugins/helper/url_for“

weiyong134 avatar Feb 22 '24 07:02 weiyong134