diff options
author | Hauke Stieler <mail@hauke-stieler.de> | 2019-03-26 18:35:07 +0300 |
---|---|---|
committer | Hauke Stieler <mail@hauke-stieler.de> | 2019-03-26 18:35:07 +0300 |
commit | 00e5dc542fdcfb3317dde441f28420230b63350c (patch) | |
tree | ac048d5025f1083ae8eefb404dbfd8015187cd60 | |
parent | a13894ab3fda45f606a3e581f8b25d723be93a56 (diff) |
Remove suffix from BaseURL
-rw-r--r-- | layouts/shortcodes/img.html | 4 |
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> |