diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 6be7a62..363502e 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -5,6 +5,7 @@ import PostCard from '@/components/PostCard'; import Sidebar from '@/components/Sidebar'; import { getSortedPostsData } from '@/lib/markdown'; import { PostMetadata } from '@/types'; +import Image from 'next/image' interface HomeProps { posts: PostMetadata[]; @@ -37,10 +38,12 @@ const Home: React.FC = ({ posts, recentPosts, tags }) => {
{posts[0].coverImage ? ( - {posts[0].title} ) : (