Merge pull request #455 from Lucas-C/issue-454

colorbox theme: avoiding holes due to non image/video files present in the source directory - fix #454
This commit is contained in:
Simon Conseil
2022-01-28 09:37:49 +01:00
committed by GitHub

View File

@@ -16,7 +16,7 @@
{% include 'map.html' %} {% include 'map.html' %}
<div id="gallery"> <div id="gallery">
{% for media in album.medias %} {% for media in album.medias | selectattr("type", "in", ("image", "video")) %}
{% if loop.index % nb_columns == 1 %} {% if loop.index % nb_columns == 1 %}
<div id="albums" class="row"> <div id="albums" class="row">
{% endif%} {% endif%}