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
|
sortable: true
|
||||||
create: false
|
create: false
|
||||||
status: listed
|
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
|
- width: 1/2
|
||||||
fields:
|
fields:
|
||||||
contactEmail:
|
contactEmail:
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ return function ($page, $kirby, $site) {
|
||||||
'template' => $page->intendedTemplate()->name(),
|
'template' => $page->intendedTemplate()->name(),
|
||||||
'modified' => $page->modified('Y-m-d'),
|
'modified' => $page->modified('Y-m-d'),
|
||||||
'site' => [
|
'site' => [
|
||||||
'title' => $site->site_title()->value(),
|
'title' => $site->siteTitle()->value(),
|
||||||
'url' => $site->url(),
|
'url' => $site->url(),
|
||||||
'logo' => $site->logo()->toFile()?->url(),
|
'logo' => $site->logo()->toFile()?->url(),
|
||||||
'language' => $kirby->language()?->code() ?? 'fr',
|
'language' => $kirby->language()?->code() ?? 'fr',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue