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