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