You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While updating the related documentation, I thoroughly tested the lookup order for shortcode templates and was surprised by the results. The updated documentation matches the behavior of v0.133.0:
This obviously isn't a big problem or we would have heard about it before now.
Testing notes:
git clone --single-branch -b hugo-github-issue-12792 https://github.com/jmooring/hugo-testing hugo-github-issue-12792
cd hugo-github-issue-12792
hugo server
hugo && cat public/en/index.html
That wasn't what I meant about ... more specific. OK, I assume you then also mean that it's different from other templates (e.g. render hooks).
Shortcodes has its own lookup function for technical reasons that's no longer (as) valid. We could/should rewrite this to use the same logic used elsewhere.
bep
changed the title
Unexpected lookup order for shortcode templates
Different lookup order for shortcode templates
Aug 23, 2024
While updating the related documentation, I thoroughly tested the lookup order for shortcode templates and was surprised by the results. The updated documentation matches the behavior of v0.133.0:
https://gohugo.io/templates/shortcode/#template-lookup-order
This obviously isn't a big problem or we would have heard about it before now.
Testing notes:
Then start removing the shortcode templates one by one, going from most specific to least specific according to:
https://gohugo.io/templates/shortcode/#template-lookup-order
The text was updated successfully, but these errors were encountered: