[mod] fix indentation
This commit is contained in:
parent
aa7121250f
commit
1db01d43ef
@ -1,22 +1,17 @@
|
||||
{% if section.background %}
|
||||
<div id="bg-section" style="background: {{ section.background }};">
|
||||
{% endif %}
|
||||
|
||||
<div class="container baguette">
|
||||
<div class="row">
|
||||
{% for line in section.images %}
|
||||
{% set number = line|length %}
|
||||
{% for image in line %}
|
||||
<div class="col s12 m{{24 // number }} l{{12 // number }}">
|
||||
<div class="card">
|
||||
{% if image.type == "video" %}
|
||||
{% set video = Video(image) %}
|
||||
{{ video.copy() }}
|
||||
{% else %}
|
||||
{% set caption = image.text %}
|
||||
{% set image = Image(image) %}
|
||||
{{ image.copy() }}
|
||||
{% endif %}
|
||||
<div class="col s12 m{{24 // number }} l{{12 // number }}">
|
||||
<div class="card">
|
||||
{% 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="">
|
||||
@ -25,6 +20,10 @@
|
||||
</div>
|
||||
{% set video = "" %}
|
||||
{% 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") }}">
|
||||
@ -42,6 +41,7 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if section.background %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user