Skip to content

RyanLuu/sausage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sausage

Sausage is a static site generator.

Getting started

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/.

Adding content

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-31

Customizing

HTML 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.

Future plans

  • Code highlighting with tree-sitter
  • Arbitrary data specified in sausage.toml and queryable in templates
  • Write publish script that manages publish date and creates/updates pages
  • Better JS & WASM support

About

Lightweight static site generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors