Open jmooring opened 2 months ago
and was surprised by the results.
Can you be more ... specific?
This doesn't look right to me: https://gohugo.io/templates/shortcode/#template-lookup-order
But it matches current behavior.
This doesn't look right to me
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.
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