olOwOlo / hugo-theme-even

🚀 A super concise theme for Hugo https://hugo-theme-even.netlify.app
https://hugo-theme-even.netlify.app
MIT License
2.05k stars 735 forks source link

突然间无法通过 hugo 渲染 md 文件 #401

Closed yibie closed 2 years ago

yibie commented 2 years ago

错误提示:

Error: Error building site: failed to render pages: render of "page" failed: "/Users/chenyibin/学无止境@一点一滴/themes/even/layouts/_default/baseof.html:14:5": execute of template failed: template: post/single.html:14:5: executing "post/single.html" at <partial "head.html" .>: error calling partial: "/Users/chenyibin/学无止境@一点一滴/themes/even/layouts/partials/head.html:13:72": execute of template failed: template: partials/head.html:13:72: executing "partials/head.html" at <safeHTML>: error calling safeHTML: unable to cast []string{"Steve Chan"} of type []string to string Total in 126 ms

不太理解这是什么意思,麻烦了,谢谢。

shockerli commented 2 years ago

将Hugo从0.88升级到0.99后同遇到。可理解为新版本Hugo放弃了一些模板变量,而模板没有跟进,就GG了。作者好久没维护了,我之前提的PR都半年了还没合并,所以只能用老版本的Hugo。

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.