How this site works

A static Astro site where everything is a Markdown file in git, and photos go through a script that strips location data before they're committed.

This site is a static Astro build. There is no server, no database, and no JavaScript sent to the browser. Every page is HTML and one stylesheet.

Content is files

Everything you can read here is a Markdown file under src/content/, validated against a schema at build time. A post is a file in posts/, a project is a file in projects/, and an album is a folder of images with an index.md beside them. If a date is malformed or a photo is missing its alt text, the build fails instead of publishing something broken.

Publishing is git push.

Photos

Photos get the most care because they carry the most risk. A phone photo’s metadata includes where it was taken, so originals never go into the repository. Instead:

npm run photos -- kyoto ~/Pictures/export/kyoto --title "Kyoto"

That script resizes each image to a sensible maximum, strips every byte of metadata (GPS included), and records the useful parts (camera, lens, exposure) in the album’s frontmatter. At build time, Astro generates responsive WebP versions so a phone never downloads a desktop-sized file.

The simplest system that handles the hard case is usually the right one.

Typography

Two typefaces: Manrope for reading and Geist Mono for anything measured, like dates and exposure settings. Every page sits on the same two-column grid, with labels on the left and content on the right. It’s monochrome and follows your system’s light or dark setting.1

Footnotes

  1. There’s no toggle, which means no JavaScript. ↩

  • meta
  • astro

← Writing