Remove relLangURL from resource URLs

master
Will Faught 2 years ago
parent d1fa0e8276
commit 0294a111ff

@ -6,13 +6,13 @@
{{ with $page.Resources.GetMatch $url }} {{ with $page.Resources.GetMatch $url }}
{{ $resource = . }} {{ $resource = . }}
{{ else }} {{ else }}
{{ with $page.Resources.Get (relLangURL $url) }} {{ with $page.Resources.Get $url }}
{{ $resource = . }} {{ $resource = . }}
{{ else }} {{ else }}
{{ with resources.GetMatch $url }} {{ with resources.GetMatch $url }}
{{ $resource = . }} {{ $resource = . }}
{{ else }} {{ else }}
{{ with resources.Get (relLangURL $url) }} {{ with resources.Get $url }}
{{ $resource = . }} {{ $resource = . }}
{{ else }} {{ else }}
{{ with resources.GetRemote $url }} {{ with resources.GetRemote $url }}

@ -27,7 +27,7 @@
{{ if not $resource }} {{ if not $resource }}
{{ $resource = partial "paige/func-resource.html" (dict {{ $resource = partial "paige/func-resource.html" (dict
"page" $page "page" $page
"url" (relLangURL $src) "url" $src
) }} ) }}
{{ end }} {{ end }}

Loading…
Cancel
Save