{{ album.slug|capitalize }} {% if album.elements is defined and album.elements %} {% for id, element in album.elements %} {{ element.name }} TODO: miniature if target is a file or image list when directory ? {% endfor %} {% endif %}