Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/antznin/seattle
- Owner: antznin
- License: mit
- Created: 2023-10-22T02:22:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-02T07:21:02.000Z (about 1 year ago)
- Last Synced: 2024-11-05T09:48:11.568Z (2 months ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.