877 B
877 B
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.pyalternative - Make a pretty index page
- Generate .webp thumbnails for index page
- Make
make clean-distremove only unused photos (i.e. all photos in dist setminus photos that are supposed to be in dist) - Make a mobile page