{% set newsLasted = newsService.getListLasted %}
{% if newsLasted %}
{% for news in newsLasted|default([]) %}
<div class="col-lg-4 col-md-6 mb-lg-5 mb-4">
<div class="n-item d-flex flex-column h-100" data-aos='zoom-in'>
<div class="n-img mb-4">
<a href="{{ news.url }}">
<img class="position-relative w-100" src="{{ news.media }}" alt="{{ news.title }}"
onerror="this.onerror=null;this.src='{{ asset('assets/images/no-img/news.jpg') }}';"/>
</a>
</div>
<div class="n-title mb-3">
<a href="{{ news.url }}">{{ news.title }}</a>
</div>
<div class="n-time mb-3">
<div class="n-icon"><i class="fa-solid fa-calendar-week"></i></div>
<div class="n-text">{{ news.createdDate|date('d M Y') }}</div>
</div>
<div class="n-text mb-3">
<div class="truncate-text">
{{ news.description }}
</div>
</div>
<div class="n-link mt-auto">
<a href="{{ news.url }}">{% trans %}Lire l'article{% endtrans %}<i class="fa-solid fa-arrow-right"></i></a>
</div>
</div>
</div>
{% endfor %}
{% endif %}