From f122840bde253920595c2964bb6ff9bc4c4abdac Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 29 Dec 2022 22:13:39 -0800 Subject: [PATCH] Use Resources.Get instead of GetMatch --- layouts/shortcodes/paige/figure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/paige/figure.html b/layouts/shortcodes/paige/figure.html index f25237ac..e7f54e5b 100644 --- a/layouts/shortcodes/paige/figure.html +++ b/layouts/shortcodes/paige/figure.html @@ -6,7 +6,7 @@ {{ $src := .Get 0 | default (.Get `src`) }} {{ $url := urls.Parse $src }} {{ if and (not $url.IsAbs) (not (hasPrefix $url.Path "/")) }} - {{ with .Page.Resources.GetMatch $src }} + {{ with .Page.Resources.Get $src }} {{ $src = .RelPermalink }} {{ end }} {{ end }}