Photos {% if albums %} {% for a in albums %} {% if album_thumbs.get(a.id) %} {# The whole card opens the album. Without data-no-lightbox the page-wide single-image viewer swallowed this click and showed only the preview photo instead of navigating to the gallery. #} {% endif %} {{ a.name }} {% if a.description %} {{ a.description }} {% endif %} {{ album_counts.get(a.id, 0) }} photo{{ '' if album_counts.get(a.id, 0) == 1 else 's' }} {% endfor %} {% else %} No albums yet. Create one from the admin panel. {% endif %}