{% if data.articles is defined and data.articles is not empty and data.articles|length > 0 %}
<section class="linked-with mb-40px">
{% if data.title is defined and data.title is not empty %}
<h2 class="fs30 lh36 mt-40px fw400">
{{ data.title }}
</h2>
{% endif %}
<div class="articles-container mt-40px">
<div class="splide-photo splide" aria-label="En lien avec">
<div class="splide__track">
<ul class="splide__list mb-3p5em">
{% for i, article in data.articles %}
{% if article.content is defined and article.content is not empty %}
<li class="splide__slide">
{% include "blocks/sort-articles.html.twig" with {type: article.type, articleContentLinkedWith: article.content, cancel: true} %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
{% endif %}