-
-
Notifications
You must be signed in to change notification settings - Fork 402
Description
Issue description
I have a layouts/_internal/twitter_cards.html file in my project. This worked well on Hugo v0.125.4 and Congo v2.9.0. My custom twitter cards config took effect, overwriting the Hugo defaults.
After upgrading to Hugo v0.152.2 and Congo v2.12.2 the override stopped working. I don't quite understand why. Even in Congo v2.12.2, layouts/_partial/head.html references two templates in the _internal directory.
congo/layouts/_partials/head.html
Lines 131 to 132 in 53f7e89
| {{ template "_internal/opengraph.html" . }} | |
| {{ template "_internal/twitter_cards.html" . }} |
Based on this, I would have expected my file to be picked up.
The only thing I can find the documentation for Hugo's new templating system says:
We have removed the concept of _internal Hugo templates.
Replace constructs similar to {{ template "_internal/opengraph.html" . }} with {{ partial "opengraph.html" . }}.
From what I can understand, head.html should be updated to use the partial syntax. So perhaps the template directive no longer looks at the local _internal directory but still allows the default opengraph/twitter_cards templates in Hugo to be picked up?
If I manually update Congo's head.html to use {{ partial "twitter_cards.html" }} and move my custom twitter_cards.html file to layouts/_partials it works. But I obviously don't want to make changes inside the Congo repository.
My question is if I am doing something wrong and should put my twitter_cards.html somewhere else, or if the Congo theme needs to be updated to use partial instead?
Theme version
v2.12.2
Hugo version
hugo v0.152.2+extended+withdeploy darwin/arm64 BuildDate=2025-10-24T15:31:49Z VendorInfo=brew
Which browser rendering engines are you seeing the problem on?
Firefox (Mozilla Firefox)
URL to sample repository or website
No response