Personal site. Astro 6, Tailwind v4, content collections.
bun install
bun run dev
bun run build/landing. Pulls fromsrc/data/work.ts, the blog and the gallery./workprojects, experience and a deck of posters. Editsrc/data/work.ts; posters are files insrc/posters/, stacked in the order listed insrc/data/posters.ts(top card first). The pile's tilt is random per build./blogmarkdown posts insrc/content/blog/(.mdxwhen a post embeds a component fromsrc/components/blog/). Images go insrc/assets/blog/<post>/, linked relatively; videos inpublic/blog/<post>/.$…$and$$blocks render with KaTeX (src/markdown/plugins.mjs)./gallerythe exhibition list./gallery/[exhibition]is one room: a wall you pan and zoom, with the wall text at the centre and a label under each photo./gallery/[exhibition]/[photo]is the zoomable view of one photo.
- Copy the files into a room folder,
src/gallery/<room>/. Each folder is one room, and its name is the exhibition id (src/gallery/black-and-white/hangs insrc/content/exhibitions/black-and-white.md). File names are photo ids, so they must be unique across folders. To shrink them, keep every tag: for scans copy the XMP as a block (exiftool -TagsFromFile orig.jpg -xmp out.jpg), because exiftool can't copy Rolloc'sFilmStocktag on its own. - Run
bun run gallery:sync. New files get an entry insrc/content/gallery/photos.jsonwith what the file holds: camera, lens, settings, 35mm-equivalent focal length, exposure compensation, mode, metering, capture date and a color/B&W flag. Fujifilm files also get the film simulation and its recipe (dynamic range, tone, grain, color chrome, clarity, noise reduction, sharpness, white balance, mono toning). Rolloc scans getfilmwith maker, stock, ISO and the scan software. Fields the file doesn't have are left out, and so is the date. Needsexiftoolon the PATH. A file moved to another folder gets its new room. A new folder gets a stub exhibition file to fill in. Every photo not yet listed in its exhibition is added at the end ofphotoswithtitle: Untitled. - Edit the entry by hand for
alt,caption,tags,location. For film, add"format"("35mm","120, 6×4.5"). For analog shots without Rolloc data, add"film": { "manufacturer": "Kodak", "stock": "Portra 400", "iso": 400, "format": "35mm" }. - In the exhibition file, replace each
Untitledwith the wall label and reorder thephotoslist to set the hang order.
A photo shows only inside an exhibition. One markdown file per room folder in
src/content/exhibitions/, with the same name:
---
title: A Day in Meissen
subtitle: One line for the gallery index.
status: on-view # on-view | permanent | past
opens: 2026-05-16 # not used by permanent shows
closes: 2026-12-31 # optional
cover: DSCF4519 # optional, photo id for the index; defaults to the first photo
created: 2026-11-07T17:48:00Z # set by gallery:sync; the index lists rooms oldest first
pinned: true # optional, puts this room on top as the large card; one room at most
photos: # optional, hang order and labels; the rest of the folder follows
- DSCF4519
- DSCF4514:
title: Morning light # wall label in this room; falls back to the caption
---
The body is the wall text. It shows above the photos.To take a show down, set status: past and give it a closes date. To put a
new one up, add a folder in src/gallery/ and run gallery:sync. The index
lists the rooms in created order, with the pinned room first.
Source photos are committed with the site. Astro only ships the resized AVIF
and WebP copies; the originals never reach dist/. Keep sources around 3000px
on the long edge so the repo stays light.
Netlify builds from git with netlify.toml: astro build, publish dist/,
Node 22. Push to deploy.
AT Name Sans Variableis served frompublic/fonts/.- Mono is Azeret Mono and titles are Fahkwang, both through the Astro fonts API.
Tokens live in the @theme block of src/styles/global.css. Light and dark
values are CSS variables on :root and :root.dark. The theme toggle in the
header writes localStorage.theme.
The palette follows the visitor's local hour. An inline script in
src/layouts/Layout.astro sets data-palette on <html> from its schedule,
and global.css holds a :root[data-palette=…] light and dark block for each
palette but Mint, which is the default on :root:
| From | Palette |
|---|---|
| 05:00 | Moss |
| 09:00 | Mint |
| 18:00 | Slate |
| 23:00 | Plum |
The light/dark toggle still works on top of whichever palette is active. In dev the palette picker overrides the schedule.