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.04k stars 735 forks source link

fix:render failed since hugo v0.111.0 #421

Closed uucloud closed 1 year ago

uucloud commented 1 year ago

Since version v0.111.0 of Hugo (https://github.com/gohugoio/hugo/commit/66f94b4945e804f10be0a04d1365bb3c6e1a4c05), the Google News template has been removed, which causes theme rendering to fail.

(base) ➜  uucloud git:(master) ✗ hugo
Start building sites …
hugo v0.111.3+extended darwin/amd64 BuildDate=unknown
ERROR 2023/03/20 19:42:45 render of "page" failed: "/Users/dyp/blog/hugo/uucloud/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: execute of template failed: html/template:partials/head.html:79:13: no such template "_internal/google_news.html"
ERROR 2023/03/20 19:42:45 render of "section" failed: "/Users/dyp/blog/hugo/uucloud/themes/even/layouts/_default/baseof.html:14:5": execute of template failed: template: _default/section.html:14:5: executing "_default/section.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:79:13: no such template "_internal/google_news.html"
ERROR 2023/03/20 19:42:45 render of "taxonomy" failed: "/Users/dyp/blog/hugo/uucloud/themes/even/layouts/_default/baseof.html:14:5": execute of template failed: template: _default/terms.html:14:5: executing "_default/terms.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:79:13: no such template "_internal/google_news.html"
ERROR 2023/03/20 19:42:45 render of "home" failed: "/Users/dyp/blog/hugo/uucloud/themes/even/layouts/_default/baseof.html:14:5": execute of template failed: template: index.html:14:5: executing "index.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:79:13: no such template "_internal/google_news.html"
Error: Error building site: failed to render pages: render of "page" failed: "/Users/dyp/blog/hugo/uucloud/themes/even/layouts/_default/baseof.html:14:5": execute of template failed: template: _default/single.html:14:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:79:13: no such template "_internal/google_news.html"
Total in 128 ms
chafel commented 1 year ago

Expecting👻

prbond commented 1 year ago

Hi, I have this issue. Commit this PR would be appreciated Regards

do-me commented 1 year ago

For anyone waiting for the merge, in the meantime you can just remove

{{- template "_internal/google_news.html" . -}}

from \themes\even\layouts\partials\head.html and rebuild the site. It works for me.

stale[bot] commented 1 year 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.