diff options
Diffstat (limited to 'src/pages/index.astro')
| -rw-r--r-- | src/pages/index.astro | 2 |
1 files changed, 1 insertions, 1 deletions
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); --- |
