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-18 03:30:40 +0300
committerHauke Stieler <mail@hauke-stieler.de>2019-03-18 03:30:40 +0300
commit156cd04a7af6380de0bcad30c62815e4cb173baf (patch)
tree2a8e5ad4ed243ba058df5d494c1fe1947e282294
parent7b8d9f6a00d7ae164044f85a8d858490dae26394 (diff)
Fix wrong image URLs
-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 62d2b6a..f2852ef 100644
--- a/layouts/shortcodes/img.html
+++ b/layouts/shortcodes/img.html
@@ -1,6 +1,6 @@
<figure>
- <a href=/images/{{ index .Params 0 }} target="_blank">
- <img src=/images/{{ index .Params 0 }}>
+ <a href={{ .Page.Site.BaseURL }}/images/{{ index .Params 0 }} target="_blank">
+ <img src={{ .Page.Site.BaseURL }}/images/{{ index .Params 0 }}>
</a>
<figcaption>
<h4>