Use Resources.Get instead of GetMatch

This commit is contained in:
Will Faught
2022-12-29 22:13:39 -08:00
parent 950dac7b9c
commit f122840bde

View File

@@ -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 }}