How this site is built, for anyone who opened the inspector before reading.
Theme and plugin
A block theme built on theme-elementary, and a small plugin built on plugin-elementary. The theme only does presentation. Everything that should survive a theme change lives in the plugin: series and topics, server-side code highlighting, the contents list, related posts, the forms, the search index and the cache purge.
The design is called Pine & Lime: paper and green-black ink, pine for every link, and lime as a highlighter. The lime only ever marks things, behind a word or under the current page in the menu, and never colours text. Dates and labels sit in a margin to the left of a single column, the way notes do.
Type
- Bricolage Grotesque for headings
- Inter for everything you read
- JetBrains Mono for code, dates, paths and labels
All three are self-hosted and cut down to Latin characters: three files, 89 KB in all, and a browser only fetches the ones a page uses.
Hosting and caching
Shared hosting on LiteSpeed, with Cloudflare in front. Cloudflare keeps every page for two hours. Publishing a post purges exactly the pages it appears on, never the whole zone, and then requests them again so the next visitor is not the one waiting on PHP.
- Code is highlighted on the server and cached, so pages ship no highlighter
- Search (⌘K) reads one static JSON file, so it never touches the database
- Links are prerendered when you hover them
- Everything works with JavaScript off. The script only adds the theme switch, copy buttons and search
Images
Pages show no post covers. The old AI-generated covers are still the share images for now, the picture a link preview shows. Diagrams are drawn in HTML, so they reflow on a phone and a screen reader can read them.