From 0294a111ff08b21d1b14fb57eff5d30b7913f60d Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 22 Jan 2023 01:05:36 -0800 Subject: [PATCH] Remove relLangURL from resource URLs --- layouts/partials/paige/func-resource.html | 4 ++-- layouts/partials/paige/img.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/paige/func-resource.html b/layouts/partials/paige/func-resource.html index 9df47dd8..54422232 100644 --- a/layouts/partials/paige/func-resource.html +++ b/layouts/partials/paige/func-resource.html @@ -6,13 +6,13 @@ {{ with $page.Resources.GetMatch $url }} {{ $resource = . }} {{ else }} - {{ with $page.Resources.Get (relLangURL $url) }} + {{ with $page.Resources.Get $url }} {{ $resource = . }} {{ else }} {{ with resources.GetMatch $url }} {{ $resource = . }} {{ else }} - {{ with resources.Get (relLangURL $url) }} + {{ with resources.Get $url }} {{ $resource = . }} {{ else }} {{ with resources.GetRemote $url }} diff --git a/layouts/partials/paige/img.html b/layouts/partials/paige/img.html index affd1bff..cd2476a7 100644 --- a/layouts/partials/paige/img.html +++ b/layouts/partials/paige/img.html @@ -27,7 +27,7 @@ {{ if not $resource }} {{ $resource = partial "paige/func-resource.html" (dict "page" $page - "url" (relLangURL $src) + "url" $src ) }} {{ end }}