From 4b9018b6d92ef8f1854d9dc44625295c2acd3fb3 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Thu, 3 Jul 2025 13:59:59 +0300 Subject: Cleanup old notes feature --- src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages/index.astro') diff --git a/src/pages/index.astro b/src/pages/index.astro index f3aac47..df7a66a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -16,7 +16,7 @@ const allPostsByDate = allPosts // Micro const MAX_MICRO = 5; -const allMicro = await getCollection("note"); +const allMicro = await getCollection("micro").catch(() => []); // Fallback to empty array if micro collection fails const latestMicro = allMicro.sort(collectionDateSort).slice(0, MAX_MICRO); --- -- cgit v1.2.3