diff --git a/app/posts/[slug]/page.tsx b/app/posts/[slug]/page.tsx index 021b3f5..9c5ae53 100644 --- a/app/posts/[slug]/page.tsx +++ b/app/posts/[slug]/page.tsx @@ -44,7 +44,7 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str
- +

{post.title}

@@ -52,6 +52,14 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str {post.author && by {post.author}} {post.readingTime} min read
+ {post.coverImage && ( + {post.title} + )} {post.tags.length > 0 && (
{post.tags.map((tag) => ( diff --git a/components/blog/PostCard.tsx b/components/blog/PostCard.tsx index d199dbc..f9c621d 100644 --- a/components/blog/PostCard.tsx +++ b/components/blog/PostCard.tsx @@ -4,7 +4,7 @@ import Link from 'next/link'; import { m } from 'motion/react'; import type { PostMeta } from '@/lib/posts'; -export function PostCard({ slug, title, date, excerpt, tags = [], author, readingTime, index = 0 }: PostMeta & { index?: number }) { +export function PostCard({ slug, title, date, excerpt, tags = [], author, readingTime, index = 0, coverImage }: PostMeta & { index?: number }) { return ( + {coverImage && ( +
+ {title} +
+ )}
{author && ·} diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx index afe4f35..47770f7 100644 --- a/components/layout/Footer.tsx +++ b/components/layout/Footer.tsx @@ -1,6 +1,6 @@ export function Footer() { return ( -