Gestion des pieces jointes dans edition + SEO par article

This commit is contained in:
Cedric Abonnel
2026-05-08 23:16:36 +02:00
parent e49939826c
commit 81eee8a35a
5 changed files with 203 additions and 49 deletions
+8 -2
View File
@@ -87,6 +87,12 @@ $ogImage = $coverFile !== ''
<?php endif; ?>
<?php
$content = ob_get_clean();
$title = htmlspecialchars($article['title']);
$content = ob_get_clean();
$title = htmlspecialchars($article['title']);
$seoTitle = ($article['seo_title'] ?? '') ?: $article['title'];
$seoDescription = $article['seo_description'] ?? '';
$ogImage = $article['og_image'] ?? '';
$ogType = 'article';
$ogUrl = url('post/' . rawurlencode($article['slug'] ?? ''));
$articlePublishedAt = $article['published_at'] ?? '';
include __DIR__ . '/layout.php';