getPrivateCategories(); $now = time(); $base = rtrim(APP_URL, '/'); $all = array_values(array_filter( $articles->getAll(publishedOnly: true), static function (array $a) use ($now, $privateCats): bool { if (strtotime((string)($a['published_at'] ?? '')) > $now) { return false; } $cat = trim($a['category'] ?? ''); return $cat === '' || !in_array($cat, $privateCats, true); } )); // ─── 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) ?>