feat: meta author + site_author configurable depuis /admin/site

This commit is contained in:
Cedric Abonnel
2026-05-12 23:40:21 +02:00
parent fb14d7c842
commit 6b32eccebe
4 changed files with 25 additions and 3 deletions
+6 -1
View File
@@ -34,10 +34,15 @@ function siteClaim(): string
return siteSettings()['site_claim'] ?? 'journal de Cédrix · informatique, hack & loisirs';
}
function siteAuthor(): string
{
return siteSettings()['site_author'] ?? '';
}
function saveSiteSettings(array $data): void
{
$current = siteSettings();
$allowed = ['site_title', 'site_claim'];
$allowed = ['site_title', 'site_claim', 'site_author'];
foreach ($allowed as $key) {
if (array_key_exists($key, $data)) {
$val = trim((string)$data[$key]);