gitea-pages/_includes/image.html
Luke Kysow e61b737b02 Fix unclosed <figure> tag bug
Previously, if you didn't include a caption, the `<figure>` tag would never be closed. Just needed to move the `{% endif %}`
2016-07-14 13:17:03 -07:00

2 lines
393 B
HTML

<figure>{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}<img class="docimage" src="images/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}<figcaption>{{include.caption}}</figcaption>{% endif %}</figure>