{% extends 'base.html.twig' %} {# SEO gere par SeoService via la variable seo (base.html.twig) #} {% block jsonld %} {% endblock %} {% block body %}

{% if tag.tagGroup %} {{ tag.tagGroup.name }} {% endif %} {{ tag.name }}

{# Resume multi-source #} {% set sources = [] %} {% if counts.articles > 0 %}{% set sources = sources|merge(['%d article%s'|format(counts.articles, counts.articles > 1 ? 's' : '')]) %}{% endif %} {% if counts.directory > 0 %}{% set sources = sources|merge(['%d membre%s de l\'annuaire'|format(counts.directory, counts.directory > 1 ? 's' : '')]) %}{% endif %} {% if counts.products > 0 %}{% set sources = sources|merge(['%d produit%s'|format(counts.products, counts.products > 1 ? 's' : '')]) %}{% endif %} {% if counts.portfolio > 0 %}{% set sources = sources|merge(['%d realisation%s'|format(counts.portfolio, counts.portfolio > 1 ? 's' : '')]) %}{% endif %} {% if sources|length > 0 %}

{{ sources|join(' • ') }}

{% endif %}
{# --- Section Annuaire --- #} {% if hasDirectory and directoryEntries|length > 0 %}

{{ bi('address-book', 'me-2') }}Annuaire

{% for entry in directoryEntries %} {% include '_partials/_directory_card.html.twig' with { entry: entry } %} {% endfor %}
{% endif %} {# --- Section Articles --- #} {% if hasBlog and articles|length > 0 %}

{{ bi('newspaper', 'me-2') }}Articles

{% for article in articles %} {% include 'article/item.html.twig' %} {% endfor %}
{% if totalPages > 1 %} {% endif %} {% endif %} {# --- Aucun contenu --- #} {% if articles|length == 0 and directoryEntries|length == 0 %}

Aucun contenu pour ce tag.

{% endif %}
{% endblock %}