the home site for me: also iteration 3 or 4 of my site

feat: update img shortcode to use figure and figcaption elements

Changed files
+6 -4
templates
shortcodes
+6 -4
templates/shortcodes/img.html
···
-
<div {% if class %}class="{{class}}"{% endif %}>
-
<img src="{{id}}" {% if alt %}alt="{{alt}}"{% endif %}>
-
{% if caption %}<div class="caption">{{caption}}</div>{% endif %}
-
</div>
+
<figure {% if class %}class="{{class}}" {% else %}class="center" {% endif %}>
+
<img src="{{id}}" {% if alt %}alt="{{alt}}" {% endif %} />
+
{% if caption %}
+
<figcaption>{{caption}}</figcaption>
+
{% endif %}
+
</figure>