{% extends 'base.html.twig' %} {% set seo = category %} {% set seo_title = category.resolveTitle %} {% set trail = [{ label: 'Accueil', url: path('home') }, { label: 'Nos plantes', url: path('plant_index') }] %} {% for ancestor in category.ancestry %} {% set trail = trail|merge([{ label: ancestor.name, url: path('category_show', { slug: ancestor.slug }) }]) %} {% endfor %} {% block schema %} {% endblock %} {% block body %}
{{ include('_partials/breadcrumb.html.twig') }}
{% if category.parent %}

{{ category.parent.name }}

{% endif %}

{{ category.heading }}

{% if category.intro %}

{{ category.intro }}

{% endif %}
{% if category.image %}
{{ include('_partials/photo.html.twig', { media: category.image, filter: 'hero', ratio: '3 / 2', loading: 'eager', sizes: '(min-width: 1024px) 40vw, 100vw' }) }}
{% endif %}
{# — Les sous-familles, quand il y en a. Elles passent avant les fiches : quelqu'un qui arrive sur « comestibles » cherche d'abord un rayon. — #} {% set children = category.children|filter(c => c.published) %} {% if children|length %}
{% for child in children %}

{{ child.name }}

{% if child.intro %}

{{ child.intro|u.truncate(110, '…', false) }}

{% endif %}
{% endfor %}
{% endif %}
{% if plants|length %}

Ce que nous cultivons

{% for plant in plants %} {{ include('_partials/plant-card.html.twig') }} {% endfor %}
{% else %}

Les fiches de cette famille arrivent. En attendant, passez à la pépinière ou appelez-nous : ce qui pousse ici n'est pas encore tout entier sur ce site.

{% endif %} {% if category.body %}
{{ category.body|rich }}
{% endif %}
{# — Les conseils qui parlent de cette famille. Une liste de plantes sans le texte qui explique comment les planter laisse le visiteur repartir chercher ailleurs. — #} {% if advice|length %}

À lire avant de planter

Nos conseils sur le sujet

{% for article in advice %} {{ include('_partials/article-card.html.twig', { article: article, sizes: '(min-width: 768px) 33vw, 100vw' }) }} {% endfor %}
{% endif %}
{{ include('_partials/cta.html.twig', { title: 'Choisir se fait mieux à deux', text: "Décrivez-nous votre terrain, sa terre et son exposition. On vous dira lesquelles y tiendront." }) }}
{% endblock %}