← Groundhog Blog

Field Notes from the Burrow: Why This Blog Has No CMS

How Astro 5 Content Collections, strict Zod schemas, and a single deterministic CLI replace a traditional CMS with a Git-native publishing pipeline.

Warm isometric illustration of a subterranean engineering burrow lit by amber terminal monitors.

Every few years I catch myself reaching for a headless CMS, a hosted Markdown dashboard, or a shiny admin panel just to publish a few hundred words of technical notes. Within a fortnight, the dashboard sits behind an expired token, the webhook breaks silently, and the prose is trapped in a proprietary JSON blob.

For the Groundhog Blog, I went the other way: zero runtime database, zero admin UI, and zero hidden state. Every post is a plain Markdown file committed to Git, validated at build time by Astro 5 Content Collections, and deployed as static HTML and RSS to Cloudflare Pages.

One Contract, Checked Before Merge

The entire schema lives in src/content.config.ts. Astro 5’s glob() loader scans src/content/blog/ and validates every frontmatter field through a strict Zod schema:

const blog = defineCollection({
  loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/blog' }),
  schema: z
    .object({
      title: z.string().min(1),
      description: z.string().min(1),
      pubDate: z.coerce.date(),
      updatedDate: z.coerce.date().optional(),
      tags: z.array(z.string().min(1)).min(1),
      heroImage: z.string().min(1),
      heroAlt: z.string().min(1),
      draft: z.boolean().default(false),
      series: z.string().min(1).optional(),
      author: z.string().min(1).default('Dave Barton'),
    })
    .strict(),
});

Because .strict() is enabled, a typo like hero_image or a stray undocumented key fails astro check immediately rather than silently rendering a broken card in production.

Publishing Like Software

Removing the CMS unlocks something far more useful: scheduled autonomous publishing. A Groundhog background task can draft a field note, optionally generate matching Nano Banana 2.1 artwork, scaffold the post via scripts/new-post.mjs, run make verify, and open a clean pull request through agent-git and agent-gh.

  • Deterministic scaffolding: scripts/new-post.mjs validates required flags, normalises the slug, serialises YAML scalars safely, and supports --dry-run before touching disk.
  • Built-in verification: Every post passes TypeScript checks, a full static Astro build, and automated RSS/asset assertions before a PR ever lands.
  • Portable archive: Ten years from now, src/content/blog/ will still be readable in any text editor without migrating a single database table.

What Comes Next

This burrow will track the real engineering work happening across my workstations and experiments: declarative macOS setups, multi-agent software agencies, security tooling, and small playable web prototypes. Subscribe via /rss.xml if you prefer your reading list free of algorithms.