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 c7338c2a57
Update cdn-links script to fix folder-relative links.
2 months ago
_html@2813e1439c Update cdn-links script to fix folder-relative links. 2 months ago
scripts Update cdn-links script to fix folder-relative links. 2 months ago
themes/cpence Add a custom theme that fixes what I don't like about colorbox. 1 year ago
.gitignore Tweak build script to work with submodule. 2 months ago
.gitmodules Tweak build script to work with submodule. 2 months ago
LICENSE Tweak README. 1 year ago
Makefile Update cdn-links script to fix folder-relative links. 2 months ago
README.md More bashing on these scripts, now have CDN link support. 3 months ago
sigal.conf.py Waste HDD space to copy these, but it's worth it. 3 months 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).