From 3601825580e31a9a6191f3be1c8cfe40126d9b9c Mon Sep 17 00:00:00 2001 From: Nedjo Rogers Date: Tue, 12 Apr 2022 15:54:08 -0700 Subject: [PATCH] Use GetMatch in global image matching (#326) --- layouts/partials/func/GetFeaturedImage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/func/GetFeaturedImage.html b/layouts/partials/func/GetFeaturedImage.html index 5ceeb15..51aa8c0 100644 --- a/layouts/partials/func/GetFeaturedImage.html +++ b/layouts/partials/func/GetFeaturedImage.html @@ -27,7 +27,7 @@ {{ end }} {{ else }} {{/* If we find a local global Resource matching the exact value, we use it. */}} - {{ with resources.Get . }} + {{ with resources.GetMatch . }} {{ $coverImage = . }} {{ end }} {{ end }}