diff --git a/prosopopee/themes/exposure/templates/sections/pictures-group.html b/prosopopee/themes/exposure/templates/sections/pictures-group.html index 3fb624b..2b22b65 100644 --- a/prosopopee/themes/exposure/templates/sections/pictures-group.html +++ b/prosopopee/themes/exposure/templates/sections/pictures-group.html @@ -5,12 +5,19 @@ {% for line in section.images %}
{% for image in line %} -
+ {% set caption = image.text %} + {% if image.type == "video" %} + {% set video = Video(image) %} + {% set format = settings.ffmpeg.extension %} + {{ video.copy() }} + {% set ratio = video.ratio %} + {% else %} + {% set image = Image(image) %} + {{ image.copy() }} + {% set ratio = image.ratio %} + {% endif %} +
{% if image.type == "video" %} - {% set caption = image.text %} - {% set video = Video(image) %} - {% set format = settings.ffmpeg.extension %} - {{ video.copy() }}
{% endif %} {% else %} - {% set caption = image.text %} - {% set image = Image(image) %} - {{ image.copy() }} {% for image in line %} -
+ {% set caption = image.text %} + {% if image.type == "video" %} + {% set video = Video(image) %} + {% set format = settings.ffmpeg.extension %} + {{ video.copy() }} + {% set ratio = video.ratio %} + {% else %} + {% set image = Image(image) %} + {{ image.copy() }} + {% set ratio = image.ratio %} + {% endif %} +
{% if image.type == "video" %} - {% set caption = image.text %} - {% set video = Video(image) %} - {% set format = settings.ffmpeg.extension %} - {{ video.copy() }}
{% endif %} {% else %} - {% set caption = image.text %} - {% set image = Image(image) %} - {{ image.copy() }}