[mod] fix indentation

This commit is contained in:
Laurent Peuch 2016-11-01 12:27:08 +01:00
parent 5d2c521afd
commit e6fd94a6c1

View File

@ -1,30 +1,32 @@
{% if section.image.type == "video" %}
{% set video = Video(section.image) %}
{% else %}
{% set image = Image(section.image) %}
{{ image.copy() }}
{% endif %}
<div class="parallax-container z-depth-2 valign-wrapper"> <div class="parallax-container z-depth-2 valign-wrapper">
<div class="parallax"> <div class="parallax">
{% if video %} {% if section.image.type == "video" %}
{% set video = Video(section.image) %}
<img class="lazy" src="{{ video.generate_thumbnail("720") }}"> <img class="lazy" src="{{ video.generate_thumbnail("720") }}">
<video autoplay loop muted class="fillWidth"> <video autoplay loop muted class="fillWidth">
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm"> <source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
</video> </video>
{% else %} {% else %}
{% set image = Image(section.image) %}
{{ image.copy() }}
<img class="responsive-img" src="{{ image }}"> <img class="responsive-img" src="{{ image }}">
{% endif %} {% endif %}
</div> </div>
{% if section.text %} {% if section.text %}
<div class="parallax-tittle white-text"> <div class="parallax-tittle white-text">
<h1>{{ section.text.title }}</h1> <h1>{{ section.text.title }}</h1>
<h2>{{ section.text.sub_title }}</h2> <h2>{{ section.text.sub_title }}</h2>
{% if section.text.date_end %} {% 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> <div class="datetime">{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}</div>
{% else %} {% else %}
{% if section.text.date %} {% if section.text.date %}
<div class="datetime">{{ section.text.date.strftime("%d %B %Y") }}</div>{% endif %} <div class="datetime">{{ section.text.date.strftime("%d %B %Y") }}</div>
{% endif %} {% endif %}
{% endif %}
</div> </div>
{% endif %} {% endif %}
</div> </div>