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:
parent
d81eaa1c15
commit
47e993be58
2 changed files with 21 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue