Try remote resources first

This commit is contained in:
Will Faught
2023-02-19 13:30:04 -08:00
parent bb063264f4
commit 0e9c8bb908

View File

@@ -5,19 +5,21 @@
{{ $result := "" }}
{{ with $page.Resources.GetMatch $url }}
{{ $result = . }}
{{ if (urls.Parse $url).Scheme }}
{{ with resources.GetRemote $url }}
{{ $result = . }}
{{ end }}
{{ else }}
{{ with $page.Resources.Get $url }}
{{ with $page.Resources.GetMatch $url }}
{{ $result = . }}
{{ else }}
{{ with resources.GetMatch $url }}
{{ with $page.Resources.Get $url }}
{{ $result = . }}
{{ else }}
{{ with resources.Get $url }}
{{ with resources.GetMatch $url }}
{{ $result = . }}
{{ else }}
{{ with resources.GetRemote $url }}
{{ with resources.Get $url }}
{{ $result = . }}
{{ end }}
{{ end }}