Mateusz PstruchaandClaude Opus 5.5 e1c805aaf5
Release / release (push) Successful in 54s
Release / deploy (push) Successful in 16s
Add mock photos and avatar
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>
2026-10-19 22:26:14 +02:00
2026-10-19 22:26:14 +02:00
2026-10-19 22:26:14 +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%