import Link from "next/link"; import Image from "next/image"; import { getBlogPosts } from "../lib/payload"; import { Reveal, RevealGroup, RevealItem } from "./Reveal"; export async function Blog() { const posts = await getBlogPosts(3); if (posts.length === 0) return null; const featured = { ...posts[0], href: `/blog/${posts[0].slug}` }; const secondary = posts .slice(1, 3) .map((post) => ({ ...post, href: `/blog/${post.slug}` })); return (
Neue Impulse
Gedanken, Methoden & Impulse
{featured.title}
{featured.excerpt}
{post.title}
{post.excerpt}