Files
mypage/app/blog/page.tsx
2025-11-12 16:17:29 +02:00

10 lines
324 B
TypeScript

import { getAllPosts } from '@/lib/markdown'
import BlogPageClient from './blog-client'
export default async function BlogPage() {
const posts = await getAllPosts()
const allTags = Array.from(new Set(posts.flatMap((post) => post.frontmatter.tags))).sort()
return <BlogPageClient posts={posts} allTags={allTags} />
}