Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
takeyamayuki opened this issue Mar 27, 2023 · 7 comments
Open

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

takeyamayuki opened this issue Mar 27, 2023 · 7 comments
Labels
question Further information is requested

Comments

@takeyamayuki
Copy link

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
@inkrement
Copy link

inkrement commented Mar 28, 2023

Try to update your version (likely it is not up to date). The issue has been fixed in ce85f9d

@takeyamayuki
Copy link
Author

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
Copy link
Owner

rhazdon commented Apr 10, 2023

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

@rhazdon rhazdon added the question Further information is requested label Apr 10, 2023
@dirsigler
Copy link

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
Copy link
Author

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
Copy link

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

@Jeffery18-hub
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants