diff --git a/layouts/partials/paige/func-resource.html b/layouts/partials/paige/func-resource.html index f570b2d8..7dc7628f 100644 --- a/layouts/partials/paige/func-resource.html +++ b/layouts/partials/paige/func-resource.html @@ -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 }}