summaryrefslogtreecommitdiffstats
path: root/templates/shortcodes
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-07 15:57:26 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-07 15:57:26 +0200
commitef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad (patch)
tree33d7c9843c526ecd0858298a83914de723afc037 /templates/shortcodes
parent982b7ad783f0135af08700465f0ded1a4371000f (diff)
downloadrabalderz-ef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad.tar.gz
rabalderz-ef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad.tar.bz2
rabalderz-ef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad.zip
Fix issues with paths on duburls.
Diffstat (limited to 'templates/shortcodes')
-rw-r--r--templates/shortcodes/figure.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shortcodes/figure.html b/templates/shortcodes/figure.html
index 5a83112..98332a0 100644
--- a/templates/shortcodes/figure.html
+++ b/templates/shortcodes/figure.html
@@ -1,5 +1,5 @@
<div class="figure">
- <img src="/{{ page.path | safe }}{{ img }}" {% if alt %}alt="[{{ alt }}]"{% endif %}>
+ <img src="{{ get_url(path=page.path ~ img) | safe }}" {% if alt %}alt="[{{ alt }}]"{% endif %}>
<div class="caption">
{{ body | markdown | safe}}
</div>