tpl: Use GetMatch for both local and global image resources

See #14062
This commit is contained in:
Bjørn Erik Pedersen
2026-05-14 20:49:33 +02:00
parent a20cb5b1c0
commit 656fc04035
@@ -24,7 +24,7 @@
{{- $url := urls.Parse $img }}
{{- if eq $url.Scheme "" }}
{{/* Internal image: check page resources first, then global resources. */}}
{{- with or ($resources.GetMatch $img) (resources.Get $img) -}}
{{- with or ($resources.GetMatch $img) (resources.GetMatch $img) -}}
{{- $imgs = $imgs | append (dict
"Image" .
"RelPermalink" .RelPermalink