live

vkarach.com

This site, and the static generator behind it, written rather than installed.

Open Site

A personal site is usually a theme and a plugin list. This one is a generator written for it, because every interesting decision here is a decision about content, and a theme would have made those decisions first.

Content is YAML and Markdown front matter, and nothing else is a source of truth. It loads into frozen Pydantic models that forbid unknown fields, so a mistyped key is an error that names the file and the field rather than a page that quietly renders without a section. The templates run with strict undefined for the same reason: a name that does not exist is a failed build, never an empty string on a live page.

Correctness is enforced by gates that run inside the build, not by remembering to look. Every internal link is resolved against the output. The first screen of each page is weighed against a byte budget. Frames shot seconds apart are reported as bursts, because two near-identical photographs in a series is an editing mistake the author stops seeing.

Photographs have their own path. Selection is by keyword written into the file's XMP in the editor, never by a list in a config file that drifts from what was actually chosen. Derivatives are addressed by the content hash of the original, so a name is a promise about bytes: the same name is always the same image, which is what makes a one-year immutable cache safe. EXIF is stripped explicitly on every save - an AVIF encoder will happily carry GPS coordinates forward - and then authorship alone is written back in.

The originals never enter the repository and neither do the derivatives, so the build cannot check those links against the filesystem. It checks them against the manifest instead, which is the same file the pages are rendered from, and the one thing git does track about a photograph.

Deployment is a release directory per commit and a symlink to the current one, so the switch is one atomic operation and the previous release is still there. Stylesheets and scripts carry a content hash too, which is what makes it impossible to serve a visitor a stale one. The server runs nginx behind Cloudflare; the certificate is an origin certificate, so the public internet never sees the machine's address.