blog
Blog
Notes from building and learning. Posts are Markdown files compiled into the server.
01 / archive
All posts
-
Templates, styles, and posts are embedded at build time, so the server has nothing to read at runtime.
-
A small front matter parser, goldmark for the body, and drafts that never reach the list.
-
Black background, one green, and a short type scale. The constraint does most of the design work.
-
One middleware sets every security header, and the server sets four timeouts. Neither needs a library.
-
Two markers, one colon per line, and a date check. That is the whole parser, and it fits in a screen.
-
Why the stylesheet and the posts live inside the executable instead of a folder next to it.
-
Twelve projects, two columns, and a hairline between rows. Grid does the work that would otherwise be markup.
-
The post list already travels with every page, so filtering it in the browser needs no request and no library.
-
Two stages, one file copied, one non root user. The image contains the program and almost nothing else.
-
The app listens on loopback, the tunnel holds the certificate, and the host opens no inbound port.
-
A table of the questions the owner actually asks, with the file that answers each one, beats a long tour.
-
A skip link, a visible focus ring, and a tab order that follows the page. Three things that cost almost nothing.