import React from 'react' import {SimpleLayout} from '@/components/layouts/SimpleLayout' import {Card} from '@/components/ui/Card' import {Views} from '@/components/ui/Views' import {formatDate} from '@/lib/formatDate' import {getAllArticles} from '@/lib/getAllArticles' import type {Article} from '@/types' export const metadata = { title: 'Writing - Ryan Freeman', description: 'All of my long-form thoughts on software engineering, and more, displayed in chronological order.' } function Article({article}: { article: Article }) { return (
{article.title}

{formatDate(article.date)}

) } export default async function Writing() { const articles = (await getAllArticles()).map(({component, ...meta}) => meta) return (
{articles.map((article) => (
))}
) }