From 47e993be58eb44a8c851652dfa58971b33a45f6d Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 19 Feb 2026 14:14:35 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20camelCase=20coh=C3=A9rent=20dans=20bluep?= =?UTF-8?q?rint=20et=20contr=C3=B4leur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Blueprint : ajout siteTitle, siteTagline, siteDescription, logo - Contrôleur : site_title() → siteTitle() Co-Authored-By: Claude Sonnet 4.5 --- site/blueprints/site.yml | 20 ++++++++++++++++++++ site/controllers/site.php | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index 80e54ef..60c320c 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -12,6 +12,26 @@ columns: sortable: true create: false status: listed + + - width: 1/2 + fields: + siteTitle: + label: Titre du site + type: text + translate: true + siteTagline: + label: Tagline + type: text + translate: true + siteDescription: + label: Description + type: textarea + translate: true + logo: + label: Logo + type: files + max: 1 + - width: 1/2 fields: contactEmail: diff --git a/site/controllers/site.php b/site/controllers/site.php index a3ab047..ac90d90 100644 --- a/site/controllers/site.php +++ b/site/controllers/site.php @@ -14,7 +14,7 @@ return function ($page, $kirby, $site) { 'template' => $page->intendedTemplate()->name(), 'modified' => $page->modified('Y-m-d'), 'site' => [ - 'title' => $site->site_title()->value(), + 'title' => $site->siteTitle()->value(), 'url' => $site->url(), 'logo' => $site->logo()->toFile()?->url(), 'language' => $kirby->language()?->code() ?? 'fr',