theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://ananke-theme.netlify.app
MIT License
1.18k stars 1.18k forks source link

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

Open emin63 opened 1 year ago

emin63 commented 1 year ago

I get an error about "no such template" when trying to use ananke with the latest version of hugo (0.118.2):

ERROR render of "page" failed: execute of template failed: html/template:_default/single.html:40:17: no such template "_internal/google_news.html" 

I downgraded to version 0.90 and everything worked. Any suggestions?

Thanks

tknipe commented 2 months ago

having the same issue, is there a fix for this?

davidsneighbour commented 2 months ago

Let me check that. The internal template for Google News was deprecated quite a while ago. I'll remove any trace of that for the next release.

This was fixed and released in 2019. Please update your submodule/module of Ananke.

If you installed as module: run hugo mod get -u ./... in your repository root. If you installed as git submodule: run git pull inside of the submodule folder.

tknipe commented 2 months ago

Thanks! I've been using it as part of the deployment template that Vercel provides so maybe its outdated on there.

I might just start again and do everything manually.

davidsneighbour commented 2 months ago

I just tested the quick start guide with the latest release (future... there is a prerelease here). It works great now. I'll have a look at the Vercel template before I release that properly... Good to be reminded. I think other providers might have a release template too.

davidsneighbour commented 2 months ago

The Vercel template uses a 2 year old state of the theme. I'll contact them to get to some kind of agreement on how to include the theme into their templates. Right now it requires manual work. I think if possible on Vercel you will need to fix the Hugo version to a version released 2 years ago. Not optimal. This argument might help to solve it over there :)

I will release the new version with a note about that and work on the issue later on.