{% macro figure(src, caption="", class="") %}
<figure class="image {{ class }}">
  <img src="{{ src }}" loading="lazy" decoding="async">
  {% if caption != "" %}
    <figcaption>{{ caption }}</figcaption>
  {% endif %}
</figure>
{% endmacro %}