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.

+ )} +
+
+ ) +}