Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/it-gro/hugo-theme-w3css-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-gro <grossnik@tuvok>2018-08-26 10:29:28 +0300
committerit-gro <grossnik@tuvok>2018-08-26 10:29:28 +0300
commitb5bf7bf588d32648dd70824a48c1cd0da3b82a89 (patch)
tree276ae73771647e04957a6166f63aa055620c565e
parent1c96ec86eb033f4ab4e88b9e6e959162c820fae3 (diff)
Fix resource RelPermalink (for HUGO_CANONIFYURLS true-or-false)
-rw-r--r--layouts/partials/resource.image.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/resource.image.html b/layouts/partials/resource.image.html
index 97608be..5f0079b 100644
--- a/layouts/partials/resource.image.html
+++ b/layouts/partials/resource.image.html
@@ -69,7 +69,7 @@ theResImgOpt : {{- $theResImgOpt }} <br/>
{{- if $myImage }}
{{- $myBaseUrlSubDirs := replaceRE `^(http(s)?)?://(.*?)/` `` $thePage.Site.BaseURL }}
{{- if not (findRE (printf "^/%s" $myBaseUrlSubDirs) $myImage.RelPermalink) }}
- {{- $thePage.Scratch.Set `myImagePermalinkWorkaround` (printf "/%s/%s" $myBaseUrlSubDirs $myImage.RelPermalink ) }}
+ {{- $thePage.Scratch.Set `myImagePermalinkWorkaround` (printf "%s/%s" $myBaseUrlSubDirs $myImage.RelPermalink ) }}
{{- end }}
{{- $myImagePermalinkWorkaround := ($thePage.Scratch.Get `myImagePermalinkWorkaround`) | default $myImage.RelPermalink }}
<img