diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-01 13:23:17 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-01 13:23:17 +0200 |
commit | 7abff23bbb7f7e615c9779e2315616fcffe96fd1 (patch) | |
tree | 489b027325369219a663ed27ee454949058821c8 /templates | |
parent | f2a5eb6dc20bfb9fb084671fadc11156232375b5 (diff) | |
download | rabalderz-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.html | 2 |
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> |