Files
mypage/app/[locale]/blog/page.tsx
2025-12-03 16:33:43 +02:00

11 lines
372 B
TypeScript

import { getAllPosts } from '@/lib/markdown'
import BlogPageClient from './blog-client'
import {setRequestLocale} from 'next-intl/server'
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} />
}