This website

A static personal site built with Astro 7, typed content collections, and a strict budget of almost no client-side JavaScript.

Design and development · 2026 · active

Astro · TypeScript · MDX · Expressive Code · nginx

Context

A personal site is a small project with a long life. It should be pleasant to write for, cheap to host, and still readable years from now. I wanted one place for writing, project notes, and a printable resume, with no analytics and no moving parts I would have to babysit.

Problem

Personal sites tend to fail in the same two ways. Either they are so heavy that the author stops touching them, or so ad hoc that adding a post means editing three files. I wanted publishing to be a single Markdown file in a folder, with mistakes caught before they reach a reader.

Approach

The site is static output from Astro, with content in typed collections validated by schemas. Each post and project is a folder with its images beside it. Code blocks are highlighted at build time, and diagrams are rendered to inline SVG, so the browser receives HTML and CSS.

Design is driven by tokens rather than one-off styles. One set of design tokens drives every component, so changing the look means swapping variables, not rewriting pages. Client-side JavaScript is limited to a theme script, a copy button, and opt-in islands.

Results

The figures below are illustrative placeholders.

  • Transferred weight for a typical post: under 60 kB.
  • Client-side JavaScript on a typical page: about 2 kB.
  • Time from new Markdown file to published page: a few minutes, including review.
  • Content errors caught at build time rather than in production: every one so far.

Stack

Astro 7, MDX, TypeScript in strict mode, vanilla CSS with custom properties, Expressive Code, and a small nginx container behind a CDN.