Mateusz PstruchaandClaude Opus 5.5 3e18ceeb67 Single-page photo profile with justified grid
Astro site: profile header, Flickr-style justified rows that keep each
photo's aspect ratio, and a detail page per photo (date from EXIF or a
YAML sidecar, optional location) that opens in a dialog from the grid.

Originals are dropped from the build and CI fails if a published image
still carries EXIF location or capture time. Tags release folio-<ver>.tgz
and deploy it with ygg/static-server to ig.mtps.pl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 20:06:20 +02:00

folio

A single-page photo profile at ig.mtps.pl: name, bio and link on top, a justified grid of photos below, and a detail view per photo. Built with Astro, served by static-server.

Adding a photo

  1. Export it to photos/<slug>.jpg, about 2048px on the long edge, cropped however you like (1:1, 2:3, 4:3, 16:9 all work). The slug becomes the URL: /p/<slug>. Starting it with the date (2026-10-12-tatry) keeps the folder sorted.

  2. Optionally add photos/<slug>.yml:

    description: Sunrise over Morskie Oko   # multiline works with |-
    alt: Lake below a ridge at dawn         # defaults to the description
    taken: 2026-10-12T06:41                 # defaults to EXIF DateTimeOriginal
    location:                               # never taken from EXIF
      name: Morskie Oko
      lat: 49.2013                          # with lon: links to OpenStreetMap
      lon: 20.0712
    
  3. Commit, then release: git tag v1.2.3 && git push --follow-tags.

Photos are ordered newest first by taken. Undated photos go last.

The published images are resized copies without EXIF. The build deletes the originals from dist/, and pnpm check:metadata fails the release if any image still has GPS data or a capture time.

Profile

Edit profile/profile.yml. For a profile picture, put profile/avatar.jpg (or .png, .webp) next to it. Without one, the name's initial is shown.

Development

pnpm install
pnpm dev          # http://localhost:4321
pnpm check        # types
pnpm build        # dist/
pnpm check:metadata

Release and deploy

Pushing a v* tag runs .gitea/workflows/release.yml:

  1. It builds the site and attaches folio-<version>.tgz to a Gitea release.
  2. It calls ygg/actions/deploy@v2 (SSH to kara, Ansible deploy/static) with deploy/static.yml.
  3. That runs static-server for this release on port 11904, behind ig.mtps.pl.
S
Description
Photos I'm proud of — ig.mtps.pl
Readme
453 KiB
0 Stars 1 Watchers 0 Forks
Languages
Astro 56.9%
TypeScript 21.5%
JavaScript 14.2%
CSS 7.4%