diff options
Diffstat (limited to 'src/components/BlogPosts.astro')
| -rw-r--r-- | src/components/BlogPosts.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/BlogPosts.astro b/src/components/BlogPosts.astro index 87a75f4..caa75df 100644 --- a/src/components/BlogPosts.astro +++ b/src/components/BlogPosts.astro @@ -2,7 +2,7 @@ import { getCollection } from 'astro:content'; import { Card, CardContent, CardDescription, CardHeader } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; -import PostHeader from "@/components/PostHeader.astro"; +import BlogPostCard from "@/components/BlogPostCard.astro"; // Fetch all blog posts from the content collection const posts = await getCollection('blog'); @@ -24,7 +24,7 @@ const dateFormatter = new Intl.DateTimeFormat('en-GB', { <div class="space-y-4 max-h-96 overflow-y-auto"> {sortedPosts.map((post) => ( <a href={`/posts/${post.id}`} class="block hover:opacity-80 transition-opacity" data-astro-prefetch> - <PostHeader + <BlogPostCard title={post.data.title} slug={post.id} description={post.data.description} |
