From ccdc739c2251789e697fbb3b8e58b4373a0fff44 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Wed, 18 Feb 2026 15:47:55 +0100 Subject: [PATCH] feat: redesign posts listing and detail pages - posts/page.tsx: new layout matching design PDF - title+date above image, 3-col grid, no card borders - posts/[slug]/page.tsx: editorial layout with hero image, fd-prose richtext, left-aligned CTA --- src/app/(frontend)/posts/page.tsx | 61 ++++++++++++++++--------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/src/app/(frontend)/posts/page.tsx b/src/app/(frontend)/posts/page.tsx index b5f1004..270bd42 100644 --- a/src/app/(frontend)/posts/page.tsx +++ b/src/app/(frontend)/posts/page.tsx @@ -22,38 +22,51 @@ export default async function Page() { title: true, slug: true, heroImage: true, - categories: true, meta: true, publishedAt: true, - populatedAuthors: true, }, }) return (
-
-

Nyheter

-

- {posts.totalDocs} {posts.totalDocs === 1 ? 'artikel' : 'artiklar'} -

-
-
+ +
+ + {/* Page heading */} +

+ Nyheter! +

+ + {/* Grid */} {posts.docs.length === 0 ? (

Inga inlägg hittades.

) : ( -
+