Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/antznin/seattle

Simple HTML/CSS website generator to display images from directories.
https://github.com/antznin/seattle

Last synced: 26 days ago
JSON representation

Simple HTML/CSS website generator to display images from directories.

Awesome Lists containing this project

README

        

# Seattle

Simple website generator that reads the content of `images/` and generates a
minimal and single-threaded website.

No javascript, php, etc. Only HTML/CSS.

## Dependencies

This script depends on [`yattag`](https://www.yattag.org/).

## Usage

```shell
./generate
```

## `images/`

The `images/` directory must have this format:

```
images
├── 001
│   ├── Pic01.jpg
│   ├── Pic02.jpg
│   └── ...
├── 002
│   ├── Pic01.jpg
│   ├── Pic02.jpg
│   └── ...
└── ...
```

* Directory names must include a number to sort them by name.

* Pictures are sorted by filenames. Thankfully, most cameras name include a
`YYYYmmdd` date in the filename.

## Polling script

A simple polling `./poll` script detect changes in `images/` with `inotifywait`,
for automatic updates of the html file when changes happen in that directory.