[mod] fix indentation
This commit is contained in:
parent
d7934f3327
commit
71566f5b17
@ -1,49 +1,51 @@
|
|||||||
{% if section.background %}
|
{% if section.background %}
|
||||||
<div class="bg-section" style="background: {{ section.background }};">
|
<div class="bg-section" style="background: {{ section.background }};">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<section class="pictures-group baguette">
|
|
||||||
{% for line in section.images %}
|
<section class="pictures-group baguette">
|
||||||
<div class="pictures-line">
|
{% for line in section.images %}
|
||||||
{% for image in line %}
|
<div class="pictures-line">
|
||||||
{% if image.type == "video" %}
|
{% for image in line %}
|
||||||
|
{% if image.type == "video" %}
|
||||||
{% set caption = image.text %}
|
{% set caption = image.text %}
|
||||||
{% set video = Video(image) %}
|
{% set video = Video(image) %}
|
||||||
{{ video.copy() }}
|
{{ video.copy() }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set caption = image.text %}
|
{% set caption = image.text %}
|
||||||
{% set image = Image(image) %}
|
{% set image = Image(image) %}
|
||||||
{{ image.copy() }}
|
{{ image.copy() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="picture caption">
|
<div class="picture caption">
|
||||||
{% if video %}
|
{% if video %}
|
||||||
<img class="lazy" data-original="{{ video.generate_thumbnail("600") }}" src="" alt="">
|
<img class="lazy" data-original="{{ video.generate_thumbnail("600") }}" src="" alt="">
|
||||||
<video class="lazy" id="video" poster="{{ video.generate_thumbnail("600") }}" alt="" autoplay="autoplay" loop="loop" preload="auto" muted>
|
<video class="lazy" id="video" poster="{{ video.generate_thumbnail("600") }}" alt="" autoplay="autoplay" loop="loop" preload="auto" muted>
|
||||||
<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>
|
||||||
{% if caption %}
|
{% if caption %}
|
||||||
<div class="caption__overlay">
|
<div class="caption__overlay">
|
||||||
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set video = "" %}
|
{% set video = "" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
|
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
|
||||||
<img class="lazy" src="" data-original="{{ image.generate_thumbnail("x600") }}" alt="">
|
<img class="lazy" src="" data-original="{{ image.generate_thumbnail("x600") }}" alt="">
|
||||||
{% if caption %}
|
{% if caption %}
|
||||||
<div class="caption__overlay">
|
<div class="caption__overlay">
|
||||||
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</a>
|
||||||
{% if not loop.last %}
|
{% endif %}
|
||||||
<div class="separator"></div>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% if not loop.last %}
|
||||||
</section>
|
<div class="separator"></div>
|
||||||
{% if section.background %}
|
{% endif %}
|
||||||
</div>
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{% if section.background %}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user