2025-02-20 12:32:36 +01:00
2025-02-20 12:32:36 +01:00
2025-02-20 11:44:13 +01:00
2025-02-17 17:32:48 +01:00
2025-02-20 11:44:13 +01:00
2025-02-20 12:32:36 +01:00
2025-02-19 18:40:40 +01:00
2025-02-20 12:32:36 +01:00

photomk

Makefile-based static site generator for sharing photos.

Building a Page

nix develop drops you into a shell with all prerequisites. Running

IMAGE_DIR=path/to/image_dir make

builds a self-contained static page and stores it in ./dist (or DIST_DIR if set). You can use all the usual make goodies such as -j to enable parallel builds.

Data Model

The data model is simply the list of all .jpg files in IMAGE_DIR and its subdirectories, enriched with EXIF metadata.

TODO

  • Generate .zip archive of all photos and offer it for download
  • Write a faster ./extract-metadata.py alternative
  • Make a pretty index page
  • Generate .webp thumbnails for index page
  • Make make clean-dist remove only unused photos (i.e. all photos in dist setminus photos that are supposed to be in dist)
  • Make a mobile page
Description
A Makefile-based static site generator for sharing photo dumps.
Readme 90 KiB
Languages
CSS 22.5%
Makefile 20.3%
Handlebars 18%
Rust 16.4%
Nix 13.5%
Other 9.3%