From 4d425dd1266cd2db8a6a94c8d528b0ffefa3cfed Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 17 Mar 2026 10:34:29 +0100 Subject: [PATCH] fix home subtitle --- site/blueprints/pages/about.yml | 2 ++ site/blueprints/pages/home.yml | 4 +--- site/templates/home.json.php | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/site/blueprints/pages/about.yml b/site/blueprints/pages/about.yml index b13a130..6c47569 100644 --- a/site/blueprints/pages/about.yml +++ b/site/blueprints/pages/about.yml @@ -22,6 +22,8 @@ tabs: type: writer label: Titre help: Titre principal de la section intro. + marks: + - pixel subtitle: type: text buttons: false diff --git a/site/blueprints/pages/home.yml b/site/blueprints/pages/home.yml index 3c7802d..5de0ca2 100644 --- a/site/blueprints/pages/home.yml +++ b/site/blueprints/pages/home.yml @@ -20,9 +20,7 @@ tabs: fields: subtitle: label: Sous-titre - type: writer - marks: false - nodes: false + type: text ctaText: width: 1/2 label: Texte du bouton CTA diff --git a/site/templates/home.json.php b/site/templates/home.json.php index a7d53c2..c8a64d8 100644 --- a/site/templates/home.json.php +++ b/site/templates/home.json.php @@ -2,9 +2,7 @@ $specificData = [ 'hero' => [ - 'title' => $page->heroTitle()->value(), - 'titleHighlight' => $page->heroTitleHighlight()->value(), - 'subtitle' => $page->heroSubtitle()->value(), + 'subtitle' => $page->subtitle()->inline()->value(), 'ctaText' => $page->ctaText()->value(), 'ctaPath' => $page->ctaLink()->toPage()?->id() ?? '#', 'image' => $page->heroImage()->toFile()?->url()