rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.47k stars 789 forks source link

no such template "_internal/google_news.html" #416

Open takeyamayuki opened 1 year ago

takeyamayuki commented 1 year ago

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

inkrement commented 1 year ago

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

takeyamayuki commented 1 year ago

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.

rhazdon commented 1 year ago

Hi @takeyamayuki, @inkrement gave a great advice: try to update your local version of hugo. :)

dirsigler commented 1 year ago

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

takeyamayuki commented 1 year ago

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.

russjr08 commented 1 year ago

For what its worth, I was able to resolve this using git submodule update --recursive --remote.

Jeffery18-hub commented 7 months ago

Have u fixed the error? I met the same one.