| Crates.io | bupkis |
| lib.rs | bupkis |
| version | 0.1.1 |
| created_at | 2021-06-23 01:36:53.863505+00 |
| updated_at | 2021-06-23 01:50:57.482964+00 |
| description | A small static album generator |
| homepage | https://github.com/woodruffw/bupkis |
| repository | |
| max_upload_size | |
| id | 413711 |
| size | 47,376 |
A small static album generator.
Get it with cargo:
$ cargo install bupkis
Point it at an album directory:
$ bupkis generate my-album/ /var/www/my-site
$ firefox /var/www/my-site/my-album/index.html
bupkis loads album directories that are structured like this:
my-album/
img001.jpg
img002.png
img003.jpg
album.yml
JPEG and PNG are the only officially supported image formats.
album.yml is a YAML-formatted configuration file that configures the album's
order and description/individual photo descriptions:
# slugified as my-album
title: my album
# album description, rendered in the album's index
desc: |
this is the album's description. it's *rendered* as **markdown**.
# whether or not to generate JavaScript for this album
javascript: true
# each photo of the album, in presentation order
photos:
- name: img001.jpg
desc: |
individual images have descriptions too, which are also **markdown**.
- name: img002.png
desc: |
image descriptions are optional, so this next one doesn't have one.
- name: img003.jpg