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