getAll(publishedOnly: true), static fn (array $a): bool => strtotime((string)($a['published_at'] ?? '')) <= $now )); // ─── Détection navigateur ──────────────────────────────────────────────────── $accept = $_SERVER['HTTP_ACCEPT'] ?? ''; $isBrowser = str_contains($accept, 'text/html') && !str_contains($accept, 'application/rss+xml'); if ($isBrowser) { require_once BASE_PATH . '/src/Parsedown.php'; $Parsedown = new Parsedown(); $feedUrl = $base . '/feed'; $recentItems = array_slice($all, 0, 10); ob_start(); ?>
Journal personnel de Cédrix — informatique, hack et loisirs techniques.
Copiez cette URL dans votre lecteur RSS (Miniflux, Feedly, NetNewsWire…) pour recevoir les nouveaux articles automatiquement.
= htmlspecialchars($preview) ?>