diff options
Diffstat (limited to 'src/pages/index.astro')
| -rw-r--r-- | src/pages/index.astro | 14 |
1 files changed, 7 insertions, 7 deletions
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); --- <PageLayout meta={{ title: "Home" }}> @@ -46,13 +46,13 @@ const latestNotes = allNotes.sort(collectionDateSort).slice(0, MAX_NOTES); </ul> </section> { - latestNotes.length > 0 && ( + latestMicro.length > 0 && ( <section class="mt-16"> <h2 class="title text-accent mb-6 text-xl"> - <a href="/notes/">Notes</a> + <a href="/micro/">Micro</a> </h2> <ul class="space-y-6" role="list"> - {latestNotes.map((note) => ( + {latestMicro.map((note) => ( <li> <Note note={note} as="h3" isPreview /> </li> |
