A gallery generator for the Hugo static site generator
This tool will create a new posts directory containing a markdown file for each image in source directory allowing for an ordered slide show.
hugo-gallery static/images/vacation-photos hawaii "Hawaii Trip"
localhost:1313/hawaiito view the content.
This would read all of the images out of the
static/images/vacation-photosdirectory and create a new folder named
content/hawaiifilled with front matter markdown files. See sample below for details.
--- title: Hawaii Trip date: "2014-11-12" image_name: images/vacation-photos/IMG_003.jpg previous_image: images/vacation-photos/IMAGE_002.jpg next_image: images/vacation-photos/IMAGE_004.jpg next_post_path: hawaii/IMAGE_004 previous_post_path: hawaii/IMAGE_002 ---
image_namein the Hugo single post template