[mod] fix indentation
This commit is contained in:
parent
aa7121250f
commit
1db01d43ef
@ -1,47 +1,47 @@
|
|||||||
{% if section.background %}
|
{% if section.background %}
|
||||||
<div id="bg-section" style="background: {{ section.background }};">
|
<div id="bg-section" style="background: {{ section.background }};">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="container baguette">
|
|
||||||
<div class="row">
|
<div class="container baguette">
|
||||||
{% for line in section.images %}
|
<div class="row">
|
||||||
|
{% for line in section.images %}
|
||||||
{% set number = line|length %}
|
{% set number = line|length %}
|
||||||
{% for image in line %}
|
{% for image in line %}
|
||||||
{% if image.type == "video" %}
|
<div class="col s12 m{{24 // number }} l{{12 // number }}">
|
||||||
{% set video = Video(image) %}
|
<div class="card">
|
||||||
{{ video.copy() }}
|
{% if image.type == "video" %}
|
||||||
{% else %}
|
{% set video = Video(image) %}
|
||||||
{% set caption = image.text %}
|
{{ video.copy() }}
|
||||||
{% set image = Image(image) %}
|
<div class="picture card-image">
|
||||||
{{ image.copy() }}
|
<img class="lazy" data-original="{{ video.generate_thumbnail("600") }}">
|
||||||
{% endif %}
|
<video class="lazy" id="video" poster="{{ video.generate_thumbnail("600") }}" alt="" autoplay="autoplay" loop="loop" preload="auto" muted="">
|
||||||
<div class="col s12 m{{24 // number }} l{{12 // number }}">
|
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
|
||||||
<div class="card">
|
</video>
|
||||||
{% if video %}
|
|
||||||
<div class="picture card-image">
|
|
||||||
<img class="lazy" data-original="{{ video.generate_thumbnail("600") }}">
|
|
||||||
<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">
|
|
||||||
</video>
|
|
||||||
</div>
|
|
||||||
{% set video = "" %}
|
|
||||||
{% else %}
|
|
||||||
<div class="picture card-image caption">
|
|
||||||
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
|
|
||||||
<img class="lazy" data-original="{{ image.generate_thumbnail("x600") }}">
|
|
||||||
{% if caption %}
|
|
||||||
<div class="caption__overlay center">
|
|
||||||
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% set video = "" %}
|
||||||
</a>
|
{% else %}
|
||||||
|
{% set caption = image.text %}
|
||||||
|
{% set image = Image(image) %}
|
||||||
|
{{ image.copy() }}
|
||||||
|
|
||||||
|
<div class="picture card-image caption">
|
||||||
|
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
|
||||||
|
<img class="lazy" data-original="{{ image.generate_thumbnail("x600") }}">
|
||||||
|
{% if caption %}
|
||||||
|
<div class="caption__overlay center">
|
||||||
|
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% if section.background %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if section.background %}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user