Hello, world: how this blog is built
1 min read
Welcome! This first post explains how the blog works, partly as documentation for future me. It also gives the search index a unique word to find: flibbertigibbet.
The pipeline
Every post is a Markdown file in a Git repository. Pushing to main triggers a build on Vercel,
which publishes plain static HTML.

Code blocks
Syntax highlighting is done at build time by Shiki, with a light and a dark theme:
import { getCollection } from 'astro:content';
const posts = await getCollection('blog', ({ data }) => !data.draft);
console.log(`${posts.length} published posts`);
npm run build # astro build && pagefind --site dist
What ships to the browser
Almost nothing. The theme toggle, search, share buttons and comments are the only JavaScript. Everything else is HTML and CSS.
Why static?
Static files are fast, cheap to host and hard to break. There is no server to patch.