{% extends 'vitrine/layout.html.twig' %}{% set pageParam = app.request.query.get('page') %}{% block title %}{{ parentCategory.shortTitle }}{% endblock title %}{% block description %}{{ parentCategory.shortDescription }}{% endblock description %}{% block robots %}index,follow{% endblock robots %}{% block meta_social %}{{ parent() }}{% include "/vitrine/components/socialmedia.html.twig" with { 'page':page,'social_type':'website' } %}{% endblock meta_social %}{% block canonical %}{% endblock canonical %}{% block body %}<section id="blog-page" class="pb-60 inner-page-hero blog-page-section"><div class="container"><div class="row"><div class="col"><div class="posts-category ico-20"><h1>{% if parentCategory.titlePage is not empty %}{{ parentCategory.titlePage }}{% else %}{{ parentCategory.title }}{% endif %} <span class="flaticon-next"></span></h1></div></div></div>{% if articles is not empty %}<div class="posts-wrapper"><div class="row">{% for article in articles %}{% if app.request.locale == "en" %}{% set urlArticle = path('blog_article',{'slug': article.slug}) %}{% if article.pageslug3 is not empty %}{% set urlArticle = '/' ~ article.pageslug ~ '/' ~ article.pageslug2 ~ '/' ~ article.pageslug3 %}{% elseif article.pageslug2 is not empty %}{% set urlArticle = '/' ~ article.pageslug ~ '/' ~ article.pageslug2 %}{% elseif article.pageslug is not empty %}{% set urlArticle = '/' ~ article.pageslug %}{% endif %}{% else %}{% set urlArticle = path('locale_blog_article',{'_locale':app.request.locale,'slug': article.slug}) %}{% if article.pageslug3 is not empty %}{% set urlArticle = '/' ~ app.request.locale ~ '/' ~ article.pageslug ~ '/' ~ article.pageslug2 ~ '/' ~ article.pageslug3 %}{% elseif article.pageslug2 is not empty %}{% set urlArticle = '/' ~ app.request.locale ~ '/' ~ article.pageslug ~ '/' ~ article.pageslug2 %}{% elseif article.pageslug is not empty %}{% set urlArticle = '/' ~ app.request.locale ~ '/' ~ article.pageslug %}{% endif %}{% endif %}<div class="col-md-4"><div class="blog-post"><div class="blog-post-img r-12"><a href="{{ urlArticle }}">{% if article.image.name is not null %}<figure class="image"><picture><source srcset="{{ replaceInWebP2(vich_uploader_asset(article, 'imageFile')) }}" type="image/webp"><img class="img-fluid r-16" src="{{ replaceInWebP2(vich_uploader_asset(article, 'imageFile')) }}" alt="{{ article.imageAlt }}" title="{{ article.imageTitle }}" width="396" height="396" loading="lazy" /></picture></figure>{% else %}<figure class="image"><picture><source srcset="/uploads/default_article.webp" type="image/webp"><img class="img-fluid r-16" src="/uploads/default_article.webp" alt="{{ article.imageAlt }}" title="{{ article.imageTitle }}" width="396" height="396" loading="lazy" /></picture></figure>{% endif %}</a></div><div class="blog-post-txt">{% if article.authorArticle is not null %}<span class="post-tag color--theme">{{ article.authorArticle.title }}</span>{% endif %}<h2 style="font-size:25px;"><a href="{{ urlArticle }}">{{ article.title }}</a></h2>{% if article.subtitle is not empty %}{{ articleResumeChain(article.subtitle,100) }}{% endif %}</div></div></div>{% endfor %}</div></div>{% endif %}</div></section>{% endblock body %}