Rebuilding ngumii.com with Astro and Keystatic
My last post here was about rebuilding the site with Next.js and Nextra. That version did its job for a while but this year I moved the site again, this time to Astro. Here's a short note on why and how.
Why Astro
The site is mostly static pages (notes, photographs, projects and a résumé). Astro renders those to plain HTML at build time and ships little or no JavaScript unless a page asks for it. For a personal site that makes more sense than a full React app.
Third time lucky with a CMS
I wanted to write posts from a browser instead of opening an editor and committing Markdown by hand. It took three tries:
- Tina CMS was the first attempt. I ended up removing it.
- Decap CMS came next. I never got its GitHub OAuth flow to work so it went too.
- Keystatic is what the site uses now.
Keystatic runs as part of the Astro app at /keystatic. Content still lives in the repository as files, one folder per post, story or photo collection, and the images are committed alongside it. Locally it edits the files on disk, in production it commits through Keystatic Cloud. The rest of the site is still pre-rendered and the Vercel adapter serves the few routes that need a server.
Starting clean
Instead of migrating the old Markdown files automatically I started with an empty content folder and restored the old posts into the new structure afterwards. This kept the new layout simple and gave me a chance to tidy up the archive.
Photographs
Later on I redesigned the site around photography and software. The homepage now opens on a full-width photograph, followed by a strip of recent photographs and what I'm building. Alongside the notes there are photo stories and collections, published from Lightroom exports that Keystatic resizes and strips of metadata before committing them. Images go through Astro's image pipeline so each photograph is served at a size that fits the screen.
What's next
Writing more, hopefully. The tooling is sorted so no more excuses :)