{# --- Breadcrumbs --- #}
{# --- Featured image hero --- #} {% if article.featuredMedia %}
{{ responsive_img(article.featuredMedia, '(max-width: 768px) 100vw, 900px', 'article-hero__img', null, false, article) }}
{% endif %}
{# ====== Barre partage sticky (desktop gauche) ====== #}
{% set articleUrl = url('app_article_show', { slug: article.slug }) %} {% set articleTitle = article.title|url_encode %}
{# ====== Contenu principal ====== #}
{# --- Meta header --- #}
{% for cat in article.categories %} {{ cat.name }} {% endfor %} {% set _published = article.publishedAt ?? article.createdAt %} {% if article.author %} Par {{ article.author.displayName }} {% endif %} {{ article.content|readingTime }} min de lecture {% if viewCount|default(0) > 0 %} {{ viewCount }} vue{{ viewCount > 1 ? 's' : '' }} {% endif %}
{# --- Titre --- #}

{{ article.title }}

{% if article.featuredText %}

{{ article.featuredText }}

{% endif %} {# --- Contenu (with TOC anchor ids) --- #}
{{ article.content|toc_anchors|raw }}
{# --- Tags --- #} {% if article.tags|length > 0 %}
{% for tag in article.tags %} {{ tag.name }} {% endfor %}
{% endif %} {# --- Partage mobile (barre fixe bas) --- #} {# --- Bloc auteur --- #} {# Auteur de l'article ; sans auteur (articles anterieurs), le site signe #} {% set _author = article.author %}
{% if _author %}

{{ _author.displayName }}

{% if _author.jobTitle %}

{{ _author.jobTitle }}

{% endif %} {% if _author.bio %}

{{ _author.bio }}

{% endif %} {% else %}

{{ site.name|default('Blog') }}

Retrouvez tous nos articles et actualités sur notre blog.

{% endif %}
{# ====== Commentaires ====== #}

{{ article.comments|length }} commentaire{{ article.comments|length > 1 ? 's' : '' }}

{% if is_granted('ROLE_USER') %}
{{ form_start(commentForm) }} {{ form_widget(commentForm) }} {{ form_end(commentForm) }}
{% else %}

Connectez-vous pour laisser un commentaire.

{% endif %}
{% for comment in article.comments %}
{{ comment.user.displayName }}

{{ comment.content }}

{% endfor %}
{# ====== Articles connexes ====== #} {% if relatedArticles is defined and relatedArticles|length > 0 %}

Articles similaires

{% for article in relatedArticles %} {% include 'article/item.html.twig' %} {% endfor %}
{% endif %}
{# ====== Sidebar ====== #}