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 3266c94051
More bashing on these scripts, now have CDN link support.
2 weeks ago
scripts More bashing on these scripts, now have CDN link support. 2 weeks ago
themes/cpence Add a custom theme that fixes what I don't like about colorbox. 12 months ago
.gitignore More bashing on these scripts, now have CDN link support. 2 weeks ago
LICENSE Tweak README. 12 months ago
Makefile More bashing on these scripts, now have CDN link support. 2 weeks ago
README.md More bashing on these scripts, now have CDN link support. 2 weeks ago
sigal.conf.py Waste HDD space to copy these, but it's worth it. 2 weeks ago

README.md

photos.thepences.org

The code here builds the photo galleries and index page found at http://photos.thepences.org. 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.

Requirements:

  • 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)

Scripts

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.

License

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).