30 lines
1.1 KiB
HTML
Raw Normal View History

2016-02-21 22:09:59 +01:00
<div class="container">
<div class="row baguette">
{% for line in section.images %}
{% for image in line %}
2016-02-26 19:52:14 +01:00
{% set caption = image.text %}
2016-02-21 22:09:59 +01:00
{% set image = Image(image) %}
{{ image.copy() }}
{% set plop = 12 // loop.length %}
<div class="col m{{ plop }} l{{ plop }}">
<div class="card">
2016-02-26 19:52:14 +01:00
<div class="card-image caption">
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
2016-02-22 14:11:36 +01:00
<img class="responsive-img" src="{{ image.generate_thumbnail("x600") }}">
2016-02-26 19:52:14 +01:00
{% if caption %}
<div class="caption__overlay card-panel center">
<h5 class="black-white">{{ caption }}</h5>
</div>
{% endif %}
2016-02-22 14:11:36 +01:00
</a>
</div>
2016-02-21 22:09:59 +01:00
</div>
</div>
{% if not loop.last %}
<div class="separator"></div>
{% endif %}
{% endfor %}
{% endfor %}
</div>
</div>