Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一次使用就报错 #749

Open
kitmanten opened this issue May 21, 2020 · 5 comments
Open

第一次使用就报错 #749

kitmanten opened this issue May 21, 2020 · 5 comments

Comments

@kitmanten
Copy link

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
Copy link
Author

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

@dingww
Copy link

dingww commented Jun 4, 2020

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

@Moersity
Copy link

Moersity commented Jun 5, 2020

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

@jingyig01
Copy link

可参考这个issue解决:
#686

@weiyong1340
Copy link

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants