Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 656fc04

Browse files
committed
tpl: Use GetMatch for both local and global image resources
See #14062
1 parent a20cb5b commit 656fc04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{{- $url := urls.Parse $img }}
2525
{{- if eq $url.Scheme "" }}
2626
{{/* Internal image: check page resources first, then global resources. */}}
27-
{{- with or ($resources.GetMatch $img) (resources.Get $img) -}}
27+
{{- with or ($resources.GetMatch $img) (resources.GetMatch $img) -}}
2828
{{- $imgs = $imgs | append (dict
2929
"Image" .
3030
"RelPermalink" .RelPermalink

0 commit comments

Comments
 (0)