diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-06-12 18:30:42 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-06-12 18:30:42 -0700 |
| commit | e1ec4a112907f4aebad56b2b388eceb3969e6e88 (patch) | |
| tree | 04008fb1a9c4e757507f9c7acf7d1f54ea39f364 /src/pages/index.astro | |
| parent | 1b076495515ac3206c00c268e75643723a3999a5 (diff) | |
Diffstat (limited to 'src/pages/index.astro')
| -rw-r--r-- | src/pages/index.astro | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro index c2129e0..3886d8f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -9,6 +9,11 @@ import FormattedDate from "../components/FormattedDate.astro"; const posts = (await getCollection("blog")).sort( (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf() ); + +const microposts = (await getCollection("micro")).sort( + (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf() +); + --- <!DOCTYPE html> @@ -50,6 +55,22 @@ const posts = (await getCollection("blog")).sort( } </ul> </section> + <h2>Recent MicroPosts</h2> + <section> + <ul> + { + microposts + .slice(-5) + .map((post) => ( + <li> + <FormattedDate date={post.data.pubDate} /> + <a href={`/micro/${post.slug}/`}>{post.data.title}</a> + </li> + )) + .reverse() + } + </ul> + </section> <h1> 👋 Greetings, Adventurer </h1> @@ -58,6 +79,9 @@ const posts = (await getCollection("blog")).sort( archive my thoughts and processes on various topics or projects. It'll pretty much just be whatever I feel like writing about, posts will be very infrequent so don't expect much. </p> + <p> + Blog posts are regular long form writing about some technical concept, MicroPosts are all over the place and are usually quite unstructured. The RSS feed combines both of these. + </p> <p>Check out the main site as well: <a href="https://pinapelz.com">pinapelz.com</a></p> </p> </main> |
