hugo-theme-hello-friend-ng
hugo-theme-hello-friend-ng copied to clipboard
no such template "_internal/google_news.html"
Thank you for your great project.
I got the following error when trying to build from markdown.
error
% hugo
Start building sites …
hugo v0.111.3+extended darwin/amd64 BuildDate=unknown
ERROR 2023/03/21 23:17:04 render of "page" failed: "/Users/yukitakeyama/Documents/portfolio/portfolio/themes/hello-friend-ng/layouts/_default/baseof.html:4:11": execute of template failed: template: _default/single.html:4:11: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:45:12: no such template "_internal/google_news.html"
ERROR 2023/03/21 23:17:04 render of "page" failed: "/Users/yukitakeyama/Documents/portfolio/portfolio/themes/hello-friend-ng/layouts/_default/baseof.html:4:11": execute of template failed: template: _default/single.html:4:11: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:45:12: no such template "_internal/google_news.html"
ERROR 2023/03/21 23:17:04 render of "page" failed: "/Users/yukitakeyama/Documents/portfolio/portfolio/themes/hello-friend-ng/layouts/_default/baseof.html:4:11": execute of template failed: template: _default/single.html:4:11: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:45:12: no such template "_internal/google_news.html"
ERROR 2023/03/21 23:17:04 render of "page" failed: "/Users/yukitakeyama/Documents/portfolio/portfolio/themes/hello-friend-ng/layouts/_default/baseof.html:4:11": execute of template failed: template: _default/single.html:4:11: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:45:12: no such template "_internal/google_news.html"
Error: Error building site: failed to render pages: render of "page" failed: "/Users/yukitakeyama/Documents/portfolio/portfolio/themes/hello-friend-ng/layouts/_default/baseof.html:4:11": execute of template failed: template: _default/single.html:4:11: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:45:12: no such template "_internal/google_news.html"
Total in 121 ms
environment
- OS: Mac Ventura 13.2.1
- hugo version: hugo v0.111.3+extended darwin/amd64 BuildDate=unknown
- hugo-theme-hello-friend-ng is up to date
Try to update your version (likely it is not up to date). The issue has been fixed in https://github.com/rhazdon/hugo-theme-hello-friend-ng/commit/ce85f9d057addc8cbd93f94892668ef24f4f9e2d
I looked at this after doing git pull
and git submodule update --init --recursive
. The deleted part is also deleted in my environment.
However, the error still occurs.
Hi @takeyamayuki, @inkrement gave a great advice: try to update your local version of hugo. :)
Ran into the same problem. Probably just some problem with the Git foo. In my case I somehow was working with some specific commit or branch of the themes git history.
You need to check out the latest changes from master like here: https://stackoverflow.com/a/13845645
In the end, I was able to get it to work by saving the page.md
, config.toml
to a different location and recreating the repository.
For what its worth, I was able to resolve this using git submodule update --recursive --remote
.
Have u fixed the error? I met the same one.