An open API service indexing awesome lists of open source software.

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

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"
```