2016-02-26 19:52:14 +01:00

16 lines
504 B
HTML

{% set image = Image(section.image) %}
{% set caption = section.text %}
{{ image.copy()}}
<section class="bordered-picture baguette">
<div class="caption">
<a href="{{ image }} {% if caption %}data-caption="{{ caption }}"{% endif %}">
<img src="{{ image }}">
{% if caption %}
<div class="caption__overlay">
<h5 class="caption__overlay__title">{{ caption }}</h5>
</div>
{% endif %}
</div>
</a>
</section>