From 1e5f5a953588cefa75396454c9aed0a79552db14 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Thu, 3 Jul 2025 13:09:53 +0300 Subject: Migrate notes to micro --- src/pages/index.astro | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/pages/index.astro') diff --git a/src/pages/index.astro b/src/pages/index.astro index a539717..4b813da 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -14,10 +14,10 @@ const allPostsByDate = allPosts .sort(collectionDateSort) .slice(0, MAX_POSTS) as CollectionEntry<"post">[]; -// Notes -const MAX_NOTES = 5; -const allNotes = await getCollection("note"); -const latestNotes = allNotes.sort(collectionDateSort).slice(0, MAX_NOTES); +// Micro +const MAX_MICRO = 5; +const allMicro = await getCollection("note"); +const latestMicro = allMicro.sort(collectionDateSort).slice(0, MAX_MICRO); --- @@ -46,13 +46,13 @@ const latestNotes = allNotes.sort(collectionDateSort).slice(0, MAX_NOTES); { - latestNotes.length > 0 && ( + latestMicro.length > 0 && (

- Notes + Micro

    - {latestNotes.map((note) => ( + {latestMicro.map((note) => (
  • -- cgit v1.2.3