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 | |
| parent | e88144ab670e7585f998ce9d54236d5cc77d6bd4 (diff) | |
bugfix: forgot to rename the card components
| -rw-r--r-- | src/components/BlogPosts.astro | 4 | ||||
| -rw-r--r-- | src/pages/posts/[...slug].astro | 4 |
2 files changed, 4 insertions, 4 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} diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index b8e75a2..e62b109 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -2,7 +2,7 @@ import { getCollection, type CollectionEntry } from "astro:content"; import Layout from "@/layouts/main.astro"; import { buttonVariants } from "@/components/ui/button"; -import PostHeader from "@/components/PostHeader.astro"; +import BlogPostCard "@/components/BlogPostCard.astro"; import OpenRing from "@/components/OpenRing.astro"; export async function getStaticPaths() { @@ -24,7 +24,7 @@ const { Content } = await post.render(); <Layout title={`${post.data.title} | Iwan Ingman's Blog`} description={post.data.description}> <main class="mx-auto flex w-full max-w-3xl flex-col gap-8 p-4 md:p-6"> - <PostHeader + <BlogPostCard title={post.data.title} slug={post.id} description={post.data.description} |
