Add figure partial

This commit is contained in:
Oliver Davies 2019-07-15 12:33:30 +01:00
parent baf9ac5809
commit a5a4bdd465
2 changed files with 36 additions and 17 deletions

View file

@ -0,0 +1,8 @@
<figure class="block">
<img src="{{ image.src }}" alt="{{ image.alt }}" class="p-1 border">
{% if caption %}
<figcaption class="mt-2 mb-0 italic text-sm text-center text-gray-800">
{{ caption }}
</figcaption>
{% endif %}
</figure>