rachel.cafe/_includes/image.html
2022-01-27 19:44:11 +01:00

14 lines
345 B
HTML

<figure>
{% if include.url %}
<a href="{{ include.url }}" title="{{ include.title }}" target="_blank">
{% endif %}
<img src="/assets/img/{{ include.name }}" alt="{{ include.title }}"/>
{% if include.url %}
</a>
{% endif %}
{% if include.caption %}
<figcaption>{{ include.caption }}</figcaption>
{% endif %}
</figure>