hugo-theme-hello-friend-ng icon indicating copy to clipboard operation
hugo-theme-hello-friend-ng copied to clipboard

no such template "_internal/google_news.html"

Open takeyamayuki opened this issue 1 year ago • 7 comments

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

takeyamayuki avatar Mar 27 '23 14:03 takeyamayuki

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

inkrement avatar Mar 28 '23 06:03 inkrement

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.

takeyamayuki avatar Mar 30 '23 15:03 takeyamayuki

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

rhazdon avatar Apr 10 '23 23:04 rhazdon

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

dirsigler avatar Apr 11 '23 09:04 dirsigler

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.

takeyamayuki avatar Apr 11 '23 14:04 takeyamayuki

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

russjr08 avatar Apr 12 '23 02:04 russjr08

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

Jeffery18-hub avatar Apr 26 '24 15:04 Jeffery18-hub