diff options
-rw-r--r-- | layouts/partials/resource.image.html | 2 |
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 |