Twelve generated placeholders in 1:1, 2:3, 4:3, 3:2 and 16:9, with EXIF dates and a fake GPS position (which must not reach the published site), plus sidecars covering description, alt, a taken override and locations with and without coordinates. Revert this commit to drop them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
-
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. -
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 -
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:
- It builds the site and attaches
folio-<version>.tgzto a Gitea release. - It calls
ygg/actions/deploy@v2(SSH to kara, Ansibledeploy/static) withdeploy/static.yml. - That runs static-server for this release on port 11904, behind
ig.mtps.pl.