diff options
| author | IwanIDev <iwan@iwani.dev> | 2026-03-27 16:16:29 +0000 |
|---|---|---|
| committer | IwanIDev <iwan@iwani.dev> | 2026-03-27 16:16:29 +0000 |
| commit | f01178a831da7fbd34ce1fedd9c6ebccbfa5aa94 (patch) | |
| tree | 53764a2202eee0c476b36896f34049b0275a35fe /src/components/BlogPosts.astro | |
| parent | e88144ab670e7585f998ce9d54236d5cc77d6bd4 (diff) | |
bugfix: forgot to rename the card components
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} |
