diff --git a/src/components/sections/AllPostsSection.astro b/src/components/sections/AllPostsSection.astro deleted file mode 100644 index 56aac12..0000000 --- a/src/components/sections/AllPostsSection.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { readSingleton } from '@directus/sdk'; - -import LargeLinkCard from '@components/cards/LargeLinkCard.astro'; -import directus from '@lib/directus'; - -const global = await directus.request(readSingleton('site_global')); ---- - -
-
- -
-
diff --git a/src/components/sections/RecentPostsSection.astro b/src/components/sections/RecentPostsSection.astro index 5dc5a72..488c5d0 100644 --- a/src/components/sections/RecentPostsSection.astro +++ b/src/components/sections/RecentPostsSection.astro @@ -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) => )} +
+ +
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 931351a..3431392 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -6,7 +6,6 @@ import type { Post } from '@lib/directusTypes'; import HeroSection from '@components/sections/HeroSection.astro'; import SelectedPostsSection from '@components/sections/SelectedPostsSection.astro'; import RecentPostsSection from '@components/sections/RecentPostsSection.astro'; -import AllPostsSection from '@components/sections/AllPostsSection.astro'; import BaseLayout from '@layouts/BaseLayout.astro'; import directus from '@lib/directus'; @@ -57,8 +56,6 @@ const recentPosts: Post[] = posts.filter( title="Recent Posts" /> - -