Sausage is a static site generator.
First, build and run Sausage:
nix build
result/bin/sausage
Then, start an HTTP server:
lighttpd -D -f lighttpd.conf
# or
cd public; python3 -m http.server
Finally, visit it at http://localhost:8000/.
To add a post, simply write Markdown in posts/foo.md, then add the following to sausage.toml:
[post.foo]
title = "New post"
tags = [ "bar", "baz" ]
date = 2023-12-31HTML templates can be found in templates/ and use mustache as a templating language.
CSS styles and other static content can be found in static/. The color scheme can be easily replaced with another Base16 color scheme by replacing static/color.css with another css-variables theme. You can also create your own theme with the css-variables template.
- Code highlighting with tree-sitter
- Arbitrary data specified in
sausage.tomland queryable in templates - Write
publishscript that manages publish date and creates/updates pages - Better JS & WASM support