Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icecreammatt/hugo-gallery
A gallery generator for the Hugo static site generator
https://github.com/icecreammatt/hugo-gallery
Last synced: 3 months ago
JSON representation
A gallery generator for the Hugo static site generator
- Host: GitHub
- URL: https://github.com/icecreammatt/hugo-gallery
- Owner: icecreammatt
- License: mit
- Created: 2014-11-13T06:42:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-03T05:36:41.000Z (over 8 years ago)
- Last Synced: 2024-08-01T12:23:49.072Z (6 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 147
- Watchers: 4
- Forks: 12
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - icecreammatt/hugo-gallery - A gallery generator for the Hugo static site generator (others)
README
# [Hugo](http://hugo.spf13.com) image gallery 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.
## Usage
`hugo-gallery [BaseUrl]`## Example
`hugo-gallery static/images/vacation-photos hawaii "Hawaii Trip"`
Visit `localhost:1313/hawaii` to view the content.
This would read all of the images out of the `static/images/vacation-photos` directory and create a new folder named `hawaii` in `content/hawaii` filled with front matter markdown files. See sample below for details.
### Markdown Sample
```yml
---
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
---
```### Template Usage
Reference `image_name` in the Hugo single post template
``## Todo:
* Implement test coverage to solution## License
* MIT