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
View File
@@ -22,9 +22,15 @@
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<?php endif; ?>
<?php if (!empty($metaAuthor ?? '')): ?>
<meta name="author" content="<?= htmlspecialchars($metaAuthor) ?>">
<?php endif; ?>
<?php if (!empty($articlePublishedAt ?? '')): ?>
<meta property="article:published_time" content="<?= htmlspecialchars(date('c', strtotime((string)$articlePublishedAt))) ?>">
<?php endif; ?>
<?php if (!empty($metaAuthor ?? '')): ?>
<meta property="article:author" content="<?= htmlspecialchars($metaAuthor) ?>">
<?php endif; ?>
<?php if (!empty($jsonLd ?? '')): ?>
<script type="application/ld+json"><?= $jsonLd ?></script>