diff --git a/prosopopee/themes/material/templates/sections/pictures-group.html b/prosopopee/themes/material/templates/sections/pictures-group.html index 2af50c7..ccd0a0f 100644 --- a/prosopopee/themes/material/templates/sections/pictures-group.html +++ b/prosopopee/themes/material/templates/sections/pictures-group.html @@ -1,47 +1,47 @@ {% if section.background %} -
- {% endif %} -
-
- {% for line in section.images %} +
+{% endif %} + +
+
+ {% for line in section.images %} {% set number = line|length %} {% for image in line %} - {% if image.type == "video" %} - {% set video = Video(image) %} - {{ video.copy() }} - {% else %} - {% set caption = image.text %} - {% set image = Image(image) %} - {{ image.copy() }} - {% endif %} -
-
- {% if video %} -
- - -
- {% set video = "" %} - {% else %} -
- - - {% if caption %} -
-
{{ caption }}
+
+
+ {% if image.type == "video" %} + {% set video = Video(image) %} + {{ video.copy() }} +
+ +
- {% endif %} -
+ {% set video = "" %} + {% else %} + {% set caption = image.text %} + {% set image = Image(image) %} + {{ image.copy() }} + + + {% endif %}
- {% endif %}
-
{% endfor %} - {% endfor %} -
+ {% endfor %}
- {% if section.background %}
+ +{% if section.background %} +
{% endif %}