summaryrefslogtreecommitdiff
path: root/src/pages/index.astro
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-07-03 13:09:53 +0300
committerDawid Rycerz <dawid@rycerz.xyz>2025-07-03 13:09:53 +0300
commit1e5f5a953588cefa75396454c9aed0a79552db14 (patch)
tree733c5bcf71f009acc0bacfbc2269404330c82b5d /src/pages/index.astro
parent0bedb68753e7202326383fd10f7af563d7fbc24a (diff)
Migrate notes to micro
Diffstat (limited to 'src/pages/index.astro')
-rw-r--r--src/pages/index.astro14
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>