Skip to content

simonsan-contrib/splat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📷 splat

Rust

splat is a command line application to generate static photo galleries from a source directory of image files. It is a spiritual cousin of sigal but written in Rust.

Example output

DEMO OUTPUT

Features

  • Generates static galleries for no-nonsense hosting.
  • Easy installation and simple usage.
  • Clean and beautiful Tailwind CSS based builtin theme.

Installation

For 64-bit Linux systems you can install pre-built binaries from the releases. For other systems, building and installing from source can be done via

cargo install --path .

Usage

splat is a command line application and besides a source directory of image files it requires a splat.toml configuration file and a theme file containing an HTML template as well as optional assets.

To create an example configuration run splat new and edit splat.toml to your liking, especially adapt the input and output paths. output will be created if it does not exist. Then run splat build to generate the static output.

Important

The example theme relies on the Tailwind CSS v4.0 beta compiler. Make sure to install it if you want to use the theme.

Templates

Templates must be written in tera syntax. The following hierarchy of variables is available:

  • collection
    • title of this collection
    • breadcrumbs
      • path to the corresponding page
      • title of the corresponding page
  • children of sub-collections
    • path to the collection
    • title of the collection
    • thumbnail of the collection
  • images for this collection
    • path to the image
    • width and height of the image
    • thumbnail of the image

License

MIT

About

A static photo gallery generator 📷

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 74.0%
  • CSS 18.3%
  • HTML 7.7%