- fixed routing

This commit is contained in:
RJ
2025-11-12 16:17:29 +02:00
parent 87cf7946f9
commit 06155c9dbe
4 changed files with 189 additions and 185 deletions

View File

@@ -1,15 +1,10 @@
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} />
export default function BlogLayout({ children }: { children: React.ReactNode }) {
return <>{children}</>
}