diff --git a/prosopopee/themes/exposure/templates/sections/bordered-picture.html b/prosopopee/themes/exposure/templates/sections/bordered-picture.html index d81f97d..0f914af 100644 --- a/prosopopee/themes/exposure/templates/sections/bordered-picture.html +++ b/prosopopee/themes/exposure/templates/sections/bordered-picture.html @@ -1,18 +1,11 @@ -{% if section.image.type == "video" %} - {% set video = Video(section.image) %} - {% set caption = section.text %} - {{ video.copy() }} -{% else %} - {% set image = Image(section.image) %} - {% set caption = section.text %} - {{ image.copy() }} -{% endif %} - {% if section.background %}
{% endif %} -{% if video %} +{% if section.image.type == "video" %} + {% set video = Video(section.image) %} + {% set caption = section.text %} + {{ video.copy() }}
@@ -27,6 +20,9 @@
{% else %} + {% set image = Image(section.image) %} + {% set caption = section.text %} + {{ image.copy() }}