[mod] fix indentation
This commit is contained in:
parent
901e3dd2ef
commit
2305c4f109
@ -1,16 +1,18 @@
|
|||||||
{% if section.image.type == "video" %}
|
{% if section.image.type == "video" %}
|
||||||
{% set video = Video(section.image) %}
|
{% set video = Video(section.image) %}
|
||||||
{% set caption = section.text %}
|
{% set caption = section.text %}
|
||||||
{{ video.copy() }}
|
{{ video.copy() }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set image = Image(section.image) %}
|
{% set image = Image(section.image) %}
|
||||||
{% set caption = section.text %}
|
{% set caption = section.text %}
|
||||||
{{ image.copy() }}
|
{{ image.copy() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if section.background %}
|
{% if section.background %}
|
||||||
<div class="bg-section" style="background: {{ section.background }};">
|
<div class="bg-section" style="background: {{ section.background }};">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if video %}
|
|
||||||
|
{% if video %}
|
||||||
<section class="bordered-picture baguette" style="position: relative;">
|
<section class="bordered-picture baguette" style="position: relative;">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<img class="lazy" data-original="{{ video.generate_thumbnail("2000") }}" src="" alt="">
|
<img class="lazy" data-original="{{ video.generate_thumbnail("2000") }}" src="" alt="">
|
||||||
@ -24,7 +26,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% else %}
|
{% else %}
|
||||||
<section class="bordered-picture baguette">
|
<section class="bordered-picture baguette">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
|
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
|
||||||
@ -34,11 +36,11 @@
|
|||||||
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% if section.background %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if section.background %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user