summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-01 13:23:17 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-01 13:23:17 +0200
commit7abff23bbb7f7e615c9779e2315616fcffe96fd1 (patch)
tree489b027325369219a663ed27ee454949058821c8 /templates
parentf2a5eb6dc20bfb9fb084671fadc11156232375b5 (diff)
downloadrabalderz-7abff23bbb7f7e615c9779e2315616fcffe96fd1.tar.gz
rabalderz-7abff23bbb7f7e615c9779e2315616fcffe96fd1.tar.bz2
rabalderz-7abff23bbb7f7e615c9779e2315616fcffe96fd1.zip
Support `alt' attributes in figure shortcode.
Diffstat (limited to 'templates')
-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 7fb4123..f21dcce 100644
--- a/templates/shortcodes/figure.html
+++ b/templates/shortcodes/figure.html
@@ -1,5 +1,5 @@
<div class="figure">
- <img src="/{{ page.path | safe }}{{ img }}">
+ <img src="/{{ page.path | safe }}{{ img }}" {% if alt %}alt="[{{ alt }}]"{% endif %}>
<div class="caption">
{{ body }}
</div>