Use Resources.Get instead of GetMatch
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
{{ $src := .Get 0 | default (.Get `src`) }}
|
{{ $src := .Get 0 | default (.Get `src`) }}
|
||||||
{{ $url := urls.Parse $src }}
|
{{ $url := urls.Parse $src }}
|
||||||
{{ if and (not $url.IsAbs) (not (hasPrefix $url.Path "/")) }}
|
{{ if and (not $url.IsAbs) (not (hasPrefix $url.Path "/")) }}
|
||||||
{{ with .Page.Resources.GetMatch $src }}
|
{{ with .Page.Resources.Get $src }}
|
||||||
{{ $src = .RelPermalink }}
|
{{ $src = .RelPermalink }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user