Code for building our family photo gallery using Sigal.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles Pence 304c1d66bd
Update copyright year (whoops).
6 months ago
_html@28000cae5f Let s3cmd make a cache; update. 6 months ago
scripts Update copyright year (whoops). 6 months ago
themes/cpence Close endifs (whoops). 6 months ago
.gitignore Let s3cmd make a cache; update. 6 months ago
.gitmodules Tweak build script to work with submodule. 2 years ago
LICENSE Tweak README. 3 years ago
Makefile Let s3cmd make a cache; update. 6 months ago More bashing on these scripts, now have CDN link support. 2 years ago Fix sort, update html. 6 months ago

The code here builds the photo galleries and index page found at There's a Makefile here that can build the gallery (make build) or clean up the HTML if you need to regenerate it (make clean).

There's a little bit of fancy stuff here, as we need to upload the images to DigitalOcean Spaces, while pushing the HTML into a separate Git repository that will be served by DigitalOcean Apps. That's all handled by s3cmd and some scripts that are called by the Makefile.


  • sigal
  • s3cmd
    • Configure this to have access to your DigitalOcean Spaces account following the directions here
    • Installing python-magic will allow for more accurate MIME type inference, though this probably doesn't matter for this case (file extensions are accurate enough)


There are also a few scripts in the scripts directory that I use to maintain the source images for this site. They should be pretty self-explanatory; they mostly clean and set various EXIF tags.

The scripts in the scripts/flickr folder can be useful for taking an XML dump of a Flickr account (as produced by the offlickr application) and importing that dump into the EXIF/IPTC tags in your actual files. I made them work, at least. YMMV.


There's a custom Sigal theme here, which is released under the MIT License (LICENSE). Everything in the scripts folder is released under CC0 (scripts/LICENSE).