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 268ceb4be..6e6a5ddfb 100644 --- a/tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html +++ b/tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html @@ -23,9 +23,8 @@ {{- $img := . }} {{- $url := urls.Parse $img }} {{- if eq $url.Scheme "" }} - {{/* Internal image. */}} - {{- with $resources.GetMatch $img -}} - {{/* Image resource. */}} + {{/* Internal image: check page resources first, then global resources. */}} + {{- with or ($resources.GetMatch $img) (resources.Get $img) -}} {{- $imgs = $imgs | append (dict "Image" . "RelPermalink" .RelPermalink