Fix: camelCase cohérent dans blueprint et contrôleur

- Blueprint : ajout siteTitle, siteTagline, siteDescription, logo
- Contrôleur : site_title() → siteTitle()

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-19 14:14:35 +01:00
parent d81eaa1c15
commit 47e993be58
2 changed files with 21 additions and 1 deletions

View file

@ -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:

View file

@ -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',