{% for entry in gallery_entries|default:images %} {% if gallery_entries %} {% include "cast/bootstrap5/gallery_thumbnail.html" with image=entry.image caption=entry.caption use_htmx=True %} {% else %} {% include "cast/bootstrap5/gallery_thumbnail.html" with image=entry caption="" use_htmx=True %} {% endif %} {% endfor %}

Image gallery

{% with placeholder_src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" %} modal image placeholder {% endwith %}