2017-05-03 19:04:16 +02:00

35 lines
1.1 KiB
HTML

{% if settings.settings.light_mode %}
{% set pathstatic = ".." %}
{% else %}
{% set pathstatic = "." %}
{% endif %}
{% if section.image.type == "video" %}
{% set video = Video(section.image) %}
{% set format = settings.ffmpeg.extension %}
{{ 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 responsive-video">
<source src="{{ pathstatic }}/{{ video }}.{{ format }}" type="video/{{ format}}">
</video>
{% else %}
<img src="{{ pathstatic }}/{{ image.generate_thumbnail("x800") }}">
{% 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>