From 1fe8399e30a1ddcf3df97169981c82ed4c17311d Mon Sep 17 00:00:00 2001 From: Krishna Ayyalasomayajula Date: Mon, 1 Jun 2026 19:46:40 -0500 Subject: [PATCH] feat: add blog posts listing page --- app/posts/page.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/posts/page.tsx diff --git a/app/posts/page.tsx b/app/posts/page.tsx new file mode 100644 index 0000000..1618957 --- /dev/null +++ b/app/posts/page.tsx @@ -0,0 +1,24 @@ +import { getPosts } from '@/lib/posts' +import { PostCard } from '@/components/blog/PostCard' + +export const metadata = { title: 'Posts' } + +export default async function PostsPage() { + const posts = await getPosts() + + return ( +
+

+ Posts +

+
+ {posts.map((post) => ( + + ))} + {posts.length === 0 && ( +

No posts yet.

+ )} +
+
+ ) +}