{# Render figure with responsive image and optional caption #} {# Expects ImageWithCaption structblock with image and caption #} {# Adapted from mep-django #}
{% include "pages/snippets/responsive_image.html" with img=value.image alt_text=value.alternative_text %} {% if value.caption %}
{{ value.caption }}
{% endif %}