https://github.com/classabbyamp/diapositive
simple photo gallery generator
https://github.com/classabbyamp/diapositive
Last synced: 29 days ago
JSON representation
simple photo gallery generator
- Host: GitHub
- URL: https://github.com/classabbyamp/diapositive
- Owner: classabbyamp
- License: bsd-2-clause
- Created: 2024-11-02T16:48:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-02T21:46:55.000Z (over 1 year ago)
- Last Synced: 2025-06-29T14:18:05.847Z (12 months ago)
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# diapositive
simple photo gallery generator
install in a venv or similar, then see `diapo --help` for usage.
## configuration
configuration is done in hcl.
the overall config:
```hcl
# where the site will be served
base_url = "https://pics.example.com"
# the title at the top of every page
title = "my cool photos"
# generate an RSS/ATOM feed
feed = true
# maximum image dimension
image_size = 2000
# max thumbnail size
thumb_size = 512
sort = {
by = "alpha" # or "time"
order = "desc" # or "asc"
}
copyright = {
artist = "your name here"
years = "2000-2025"
licence = "all rights reserved"
}
```
album directories can have their own configuration:
```hcl
# album title: overrides default, which is the slug/id
title = "something"
# cover photo: 1-indexed, overrides default, which is index 1
cover = 2
# date of the album
date = "1970-01-01"
```