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

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2019-03-26 18:35:07 +0300
committerHauke Stieler <mail@hauke-stieler.de>2019-03-26 18:35:07 +0300
commit00e5dc542fdcfb3317dde441f28420230b63350c (patch)
treeac048d5025f1083ae8eefb404dbfd8015187cd60
parenta13894ab3fda45f606a3e581f8b25d723be93a56 (diff)
Remove suffix from BaseURL
-rw-r--r--layouts/shortcodes/img.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
index f2852ef..ee3d235 100644
--- a/layouts/shortcodes/img.html
+++ b/layouts/shortcodes/img.html
@@ -1,6 +1,6 @@
<figure>
- <a href={{ .Page.Site.BaseURL }}/images/{{ index .Params 0 }} target="_blank">
- <img src={{ .Page.Site.BaseURL }}/images/{{ index .Params 0 }}>
+ <a href={{ strings.TrimSuffix "/" .Page.Site.BaseURL }}/images/{{ index .Params 0 }} target="_blank">
+ <img src={{ strings.TrimSuffix "/" .Page.Site.BaseURL }}/images/{{ index .Params 0 }}>
</a>
<figcaption>
<h4>