{# Reusable media display macro #} {# fallback_alt: for photos without a caption, usually the post's text (v2.6.5) #} {% macro display_media(media_items, fallback_alt='') %} {% if media_items %}
{% for item in media_items %}
{{ item.caption or fallback_alt or 'Image' }} {# No figcaption - caption is for alt text only #}
{% endfor %}
{% endif %} {% endmacro %}