This site is a single Go binary. It renders every page once, when it starts, and serves them from memory.

The pages

The pages are written with templ, which compiles HTML components to Go, and styled with Tailwind. The articles are folders of Markdown and files, built into the image, so a new article is a new image.

The path from the internet

  • Cloudflare in front, proxying the domain and caching the pages.
  • An Ingress on the cluster at home, behind the home's public address.
  • A CronJob that keeps the DNS record on that address when it changes.

Why not a static host

A static host would serve the same pages. The binary also answers the contact form and serves each page in Markdown to agents that ask for it, and on a cluster that already runs at home it costs nothing more.