website/themes/serene/templates/shortcodes/figure.html

8 lines
230 B
HTML
Raw Permalink Normal View History

<figure>
<img src="{{ src }}" {% if alt %} alt="{{ alt }}"{% endif %}>
{% if via %}
<figcaption><a href="{{via}}">via</a></figcaption>
{% else %}
<figcaption>{{ caption }}</figcaption>
{% endif %}
</figure>