templates/front/_partials/blog.html.twig line 1
<section class="section" id="blog">
<div class="container">
<div class="row justify-content-center">
<div class="col-12">
<div class="section-title text-center mb-4 pb-2">
{% if app.request.locale == 'fr' %}
<h4 class="title mb-4">Derniers blogs et nouvelles</h4>
<p class="text-muted para-desc mx-auto mb-0">
Suivez nos dernières actualités et restez informé des meilleurs
conseilles.
</p>
{% endif %} {% if app.request.locale == 'ar_DZ' %}
<h4 class="title mb-4">أحدث المدونات والأخبار</h4>
<p class="text-muted para-desc mx-auto mb-0">
تابع آخر أخبارنا وابق على اطلاع بأفضل النصائح
</p>
{% endif %}
</div>
</div>
</div>
<div class="row justify-content-end">
{% for post in posts %}
<div class="col-lg-4 col-md-6 col-12 mb-4 pb-2">
<div class="card blog-post border-0 rounded overflow-hidden shadow">
<a target="_blank" href="{{ post.link }}">
{# <img src="{{
post._embedded["wp:featuredmedia"][0].media_details.sizes.medium
.source_url
}}" class="img-fluid" alt=" {{ post.title.rendered | raw }} - Clever
Nursery" style="max-height: 300px; min-height: 250px;object-fit:
contain;" /> #}
</a>
<div class="card-body p-4 text-end">
<h5 class="mb-3">
<a target="_blank" href="{{ post.link }}" class="text-dark title">
{{ post.title.rendered | raw }}
</a>
</h5>
<p class="text-muted">{{ post.excerpt.rendered | raw }}</p>
<h6 class="card-subtitle text-muted text-start">
<span>
<i data-feather="calendar" class="fea icon-sm"></i>
{{ post.date|format_datetime('medium','none' ,locale='fr' ) }}
</span>
</h6>
<a target="_blank" href="{{ post.link }}" class="text-primary h6">
<i data-feather="arrow-left" class="fea icon-sm"></i>
{% trans %} Lire {% endtrans %}
</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{# {% include "/front/_partials/mobile-app.html.twig" %} #}