29 lines
1009 B
HTML
Raw Normal View History

2016-05-26 17:04:57 +02:00
{% if section.image.type == "video" %}
{% set video = Video(section.image) %}
{{ video.copy() }}
{% else %}
{% set image = Image(section.image) %}
{{ image.copy() }}
{% endif %}
<div class="full-picture">
<div class="image">
{% if video %}
<video autoplay loop muted class="fillWidth">
2016-05-27 11:57:03 +02:00
<source src="../{{ video }}" type="video/webm" data-source="../{{ video }}" data-format="vp8" data-extension="webm">
2016-05-26 17:04:57 +02:00
</video>
{% else %}
2016-05-27 11:57:03 +02:00
<img src="../{{ image.generate_thumbnail("x800") }}">
2016-05-26 17:04:57 +02:00
{% endif %}
</div>
{% if section.text %}
<h1>{{ section.text.title }}</h1>
<h2>{{ section.text.sub_title }}</h2>
{% if section.text.date_end %}
<div class="datetime">{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}</div>
{% else %}
{% if section.text.date %}
<div class="datetime">{{ section.text.date.strftime("%d %B %Y") }}</div>{% endif %}
{% endif %}
{% endif %}
</div>