diff --git a/prosopopee/themes/exposure/templates/sections/pictures-group.html b/prosopopee/themes/exposure/templates/sections/pictures-group.html index 0085667..96d69a1 100644 --- a/prosopopee/themes/exposure/templates/sections/pictures-group.html +++ b/prosopopee/themes/exposure/templates/sections/pictures-group.html @@ -6,17 +6,11 @@ {% for line in section.images %}
{% for image in line %} +
{% if image.type == "video" %} {% set caption = image.text %} {% set video = Video(image) %} {{ video.copy() }} - {% else %} - {% set caption = image.text %} - {% set image = Image(image) %} - {{ image.copy() }} - {% endif %} -
- {% if video %}
{% endif %} - {% set video = "" %} {% else %} + {% set caption = image.text %} + {% set image = Image(image) %} + {{ image.copy() }}