{# Les métadonnées d'une page. `seo` est l'entité affichée quand il y en a une ; sinon le contrôleur pose `seo_title` et `seo_description` à la main. #} {% set description = seo_description|default(seo is defined and seo ? seo.metaDescription : null) %} {% set social_title = seo_social_title|default(seo is defined and seo ? seo.resolveSocialTitle : seo_title|default('Jardin de Bohème')) %} {% set social_description = seo_social_description|default(seo is defined and seo ? seo.resolveSocialDescription : description) %} {# La vignette d'un lien partagé, c'est la photo de la page : elle sert sans que personne ait à la choisir une seconde fois. Le jeu `social` la sert en JPEG, parce que les réseaux ne lisent pas tous le WebP. #} {% set photo = seo is defined and seo and seo.image and seo.image.path ? seo.image : null %} {% set social_image = social_image|default(photo ? photo.path|imagine_filter('social') : null) %} {% if description %}{% endif %} {% if seo_noindex|default(false) or (seo is defined and seo and not seo.indexable) %}{% endif %} {% if social_description %}{% endif %} {% if social_image %} {% if photo and photo.alternativeText %}{% endif %} {% else %} {% endif %}