Remove relLangURL from resource URLs
This commit is contained in:
@@ -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 }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user