From 785371bb3eccca455e5ce5fccbe9b6e3752a03f6 Mon Sep 17 00:00:00 2001
From: Bertrand Yuan <bert.yuan@outlook.com>
Date: Tue, 16 Dec 2025 00:15:04 +0800
Subject: fix(front-end): bug in viewing posts

---
 src/app/(main)/(home)/page.tsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'src/app/(main)/(home)/page.tsx')

diff --git a/src/app/(main)/(home)/page.tsx b/src/app/(main)/(home)/page.tsx
index a94193c..0718da9 100644
--- a/src/app/(main)/(home)/page.tsx
+++ b/src/app/(main)/(home)/page.tsx
@@ -3,16 +3,11 @@ import Posts from '@/app/(main)/(home)/_components/posts';
 import { Icons } from '@/components/icons/icons';
 import { Section } from '@/components/section';
 import Separator from '@/components/separator';
-import { getSortedByDatePosts } from '@/lib/source';
 import { getPublishedPosts } from '@/lib/payload-posts';
 import { CTA } from './_components/call-to-action';
 
 export default async function Home() {
-  // 获取 MDX 文章（保留原有功能）
-  // const mdxPosts = getSortedByDatePosts().slice(0, 3);
-
-  // 获取 Payload CMS 文章
-  const { posts: payloadPosts } = await getPublishedPosts({ limit: 3 });
+  const { posts } = await getPublishedPosts({ limit: 3 });
 
   return (
     <>
@@ -26,7 +21,7 @@ export default async function Home() {
         </h2>
       </Section>
       <Separator />
-      <Posts mdxPosts={[]} payloadPosts={payloadPosts} />
+      <Posts posts={posts} />
       <Separator />
       <CTA />
     </>
-- 
cgit v1.2.3

