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:
-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