import React from 'react'; import Link from 'next/link'; import { getAllAuthors } from '@/lib/authors'; import { generateMetadata as createMetadata } from '@/components/Metadata'; import type { Metadata } from 'next'; export async function generateMetadata(): Promise { return createMetadata({ title: 'Authors', description: 'Meet the authors of Confessions of Grace and learn about their backgrounds in Reformed theology.', url: 'https://confessionsofgrace.com/authors', type: 'website' }); } export default async function AuthorsPage() { const authors = await getAllAuthors(); return (

Meet the Authors

{authors.map((author) => (
{author.name.charAt(0).toUpperCase()}

{author.name}

{author.postCount} {author.postCount === 1 ? 'post' : 'posts'}

))}
View All Posts
); }