31 lines
1.0 KiB
HTML
Raw Normal View History

2016-04-09 09:33:48 +02:00
{% if section.color %}
<div style="padding: 1px 0px;background: {{ section.background }};">
{% endif %}
2015-12-09 06:44:23 +01:00
<section class="pictures-group baguette">
{% for line in section.images %}
<div class="pictures-line">
{% for image in line %}
2016-02-26 14:39:19 +01:00
{% set caption = image.text %}
{% set image = Image(image) %}
{{ image.copy() }}
<div class="picture caption">
2016-02-26 19:52:14 +01:00
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
2016-02-26 14:39:19 +01:00
<img src="{{ image.generate_thumbnail("x600") }}">
{% if caption %}
<div class="caption__overlay">
<h5 class="caption__overlay__title">{{ caption }}</h5>
</div>
{% endif %}
</a>
</div>
2015-12-09 06:44:23 +01:00
{% if not loop.last %}
2016-02-26 14:39:19 +01:00
<div class="separator"></div>
2015-12-09 06:44:23 +01:00
{% endif %}
{% endfor %}
</div>
2016-02-26 14:39:19 +01:00
{% endfor %}
2015-12-09 06:44:23 +01:00
</section>
2016-04-09 09:33:48 +02:00
{% if section.color %}
</div>
{% endif %}