diff --git a/tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html b/tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html index 6e6a5ddfb..bedf08c7a 100644 --- a/tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html +++ b/tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html @@ -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