diff --git a/prosopopee/themes/material/templates/sections/full-picture.html b/prosopopee/themes/material/templates/sections/full-picture.html index fc0fea6..819de2c 100644 --- a/prosopopee/themes/material/templates/sections/full-picture.html +++ b/prosopopee/themes/material/templates/sections/full-picture.html @@ -1,30 +1,32 @@ -{% if section.image.type == "video" %} -{% set video = Video(section.image) %} -{% else %} -{% set image = Image(section.image) %} -{{ image.copy() }} -{% endif %}
- {% if video %} + {% if section.image.type == "video" %} + {% set video = Video(section.image) %} - {% else %} + {% else %} + {% set image = Image(section.image) %} + {{ image.copy() }} - {% endif %} + {% endif %}
+ {% if section.text %} -
-

{{ section.text.title }}

-

{{ section.text.sub_title }}

- {% if section.text.date_end %} -
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
- {% else %} - {% if section.text.date %} -
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %} - {% endif %} -
+
+

{{ section.text.title }}

+

{{ section.text.sub_title }}

+ + {% if section.text.date_end %} +
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
+ + {% else %} + {% if section.text.date %} +
{{ section.text.date.strftime("%d %B %Y") }}
+ {% endif %} + {% endif %} + +
{% endif %}