🖼️ blog listing styles updates

This commit is contained in:
RJ
2025-11-11 16:07:33 +02:00
parent fb25989be9
commit 4ccd8fd759
12 changed files with 529 additions and 94 deletions

15
app/blog/layout.tsx Normal file
View File

@@ -0,0 +1,15 @@
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} />
}