diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 13:59:59 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 13:59:59 +0300 |
| commit | 4b9018b6d92ef8f1854d9dc44625295c2acd3fb3 (patch) | |
| tree | 10e01ec849c7439befd0a21f04021213e98d0f94 /src/pages/index.astro | |
| parent | f100d259d2ffebe61fef56ea3964f6d534d598c8 (diff) | |
Cleanup old notes feature
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); --- |
