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