23 lines
661 B
HTML
Raw Normal View History

{% set image = Image(section.image) %}
2016-02-26 14:39:19 +01:00
{% set caption = section.text %}
{{ image.copy()}}
2016-04-13 11:45:26 +02:00
{% if section.background %}
2016-04-09 09:33:48 +02:00
<div style="padding: 1px 0px;background: {{ section.background }};">
{% endif %}
2015-12-09 05:31:32 +01:00
<section class="bordered-picture baguette">
2016-02-26 14:39:19 +01:00
<div class="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 }}">
{% if caption %}
<div class="caption__overlay">
<h5 class="caption__overlay__title">{{ caption }}</h5>
</div>
{% endif %}
</div>
</a>
2015-12-09 05:31:32 +01:00
</section>
2016-04-13 11:45:26 +02:00
{% if section.background %}
2016-04-09 09:33:48 +02:00
</div>
{% endif %}