2019-06-13 12:45:06 +02:00

26 lines
567 B
Twig

{% set options = { items: {'@page.self': '/nos-references'}, 'limit': 1 } %}
{% set h5 = h5 ?: 'h2' %}
<div id="reco">
{% for p in page.collection(options)%}
<div class="title">
<{{h5}}>{{p.title}}</{{h5}}>
</div>
<div class="txt">
{% for item in p.collection %}
{% set image = item.media.images|first %}
<div class="item">
{% if image %}
{{ image.html('','logo') }}
{% endif %}
<h3>{{item.title}}</h3>
{{item.content}}
</div>
{% endfor %}
</div>
{% endfor %}
</div>