16 lines
451 B
TypeScript
16 lines
451 B
TypeScript
import { Metadata } from 'next'
|
|
import { getAllPosts } from '@/lib/markdown'
|
|
import BlogPageClient from './page'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Blog',
|
|
description: 'Toate articolele din blog',
|
|
}
|
|
|
|
export default async function BlogLayout() {
|
|
const posts = await getAllPosts()
|
|
const allTags = Array.from(new Set(posts.flatMap((post) => post.frontmatter.tags))).sort()
|
|
|
|
return <BlogPageClient posts={posts} allTags={allTags} />
|
|
}
|