Try remote resources first

master
Will Faught 2 years ago
parent bb063264f4
commit 0e9c8bb908

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

Loading…
Cancel
Save