summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/BlogPosts.astro4
-rw-r--r--src/pages/posts/[...slug].astro4
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&#39;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}