feat: move all posts to bottom of recent section

This commit is contained in:
2026-03-10 22:57:38 -05:00
parent 05d7ad6557
commit 940342cc3f
4 changed files with 15 additions and 26 deletions

View File

@@ -1,7 +1,11 @@
---
import { readSingleton } from '@directus/sdk';
import type { Post } from '@lib/directusTypes';
import BlogCard from '@components/cards/BlogCard.astro';
import LargeLinkCard from '@components/cards/LargeLinkCard.astro';
import directus from '@lib/directus';
interface Props {
posts: Post[];
@@ -9,6 +13,8 @@ interface Props {
subTitle?: string;
}
const global = await directus.request(readSingleton('site_global'));
const { posts, title, subTitle } = Astro.props;
---
@@ -27,5 +33,14 @@ const { posts, title, subTitle } = Astro.props;
{posts.map((b) =>
<BlogCard post={b} />
)}
<div class="col-span-full">
<LargeLinkCard
title="All Posts"
subTitle="Catch up on everything I've written"
url="/all"
logoLight={global.all_logoLight}
logoDark={global.all_logoDark}
/>
</div>
</div>
</section>