--- import { getCollection } from 'astro:content'; import SiteLayout from '../../components/SiteLayout.astro'; /* Drafts render locally and never in a build, so an unpublished post can be reviewed on the dev server without being one deploy away from going live. */ const posts = (await getCollection('blog')) .filter((post) => import.meta.env.DEV || !post.data.draft) .map((post) => ({ ...post, slug: post.id.replace(/\.(md|mdx)$/i, '') })) .sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf()); const stamp = (date) => date.toLocaleDateString('en', { year: 'numeric', month: 'short', day: 'numeric' }); ---
the blog

Notes from the herd.

Product decisions, implementation writeups, and what we learn running agents on machines nobody is watching.

{posts.map((post) => (

{post.data.title}

{post.data.description &&

{post.data.description}

}
))}