A Hugo Module to show a photo gallery. It's very fast/effective, especially if you have lots of images on display.
This theme is what you see on staticbattery.com which, at the time of writing this, scores 100 at Google PageSpeed for both mobile and desktop.
The recommended way to add this to your site is to include it as a Hugo Module. See the exampleSite Module config:
[module]
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
source = "layouts"
target = "layouts"
[[module.mounts]]
source = "content"
target = "content"
[[module.mounts]]
source = "static"
target = "static"
[[module.mounts]]
source = '/Users/bep/Pictures/Albums/Staticbattery'
target = 'content/images'
[[module.imports]]
path = "github.com/bep/gallerydeluxe"Also See the annotated index.html for a brief explanation about how to set this up. Note that we currently only support 1 gallery per page. Note that the exampleSite is currently configured to load a directory from bep's MacBook. If you want to take this for a spin, modify that so it points to a directory with some JPEGs on your PC.
[params]
[params.gallerydeluxe]
# Shuffle the images in the gallery to give the impression of a new gallery each time.
shuffle = false
# Reverse the order of the images in the gallery.
reverse = false
# Enable Exif data in the gallery.
# See https://gohugo.io/content-management/image-processing/#exif-data for how to filter tags.
enable_exif = falseCredit to Dan Schlosser for the Pig JS library.
