import Image from "next/image"; import Link from "next/link"; import type { Metadata } from "next"; import { ArrowRight, Calendar } from "lucide-react"; import { SectionTitle } from "@/components/section-title"; import { listPublishedPosts } from "@/lib/data"; import { buildMetadata } from "@/lib/seo"; export async function generateMetadata(): Promise { return buildMetadata("/blog", { title: "Blog", description: "Yazılım, web tasarım, SEO ve dijital pazarlama üzerine yazılar.", }); } export default async function BlogIndex() { const posts = await listPublishedPosts(); return (
{posts.length === 0 ? (

Henüz yayınlanmış yazı yok.

) : (
{posts.map((p) => (
{p.cover_image ? ( {p.title} ) : (
{p.title.charAt(0)}
)}

{p.published_at ? new Date(p.published_at).toLocaleDateString("tr-TR") : "—"}

{p.title}

{p.excerpt && (

{p.excerpt}

)} Devamını oku
))}
)}
); }