A tiny static site generator for html and gemini
926e7f95 — Clarity Flowers 10 hours ago
A little bit less data-driven, for readability
fe2003c0 — Clarity Flowers 11 hours ago
Data-driven templating
78a770d5 — Clarity Flowers 14 hours ago
Move template code into namespace


browse  log 



You can also use your local clone with git send-email.

#Website Generator

A single-file Zig project to generate static html and gemini pages for my website from markdown-ish syntax.

View the documentation

This software is by no means stable and you shouldn't depend on it unless you're comfortable with editing the source yourself.


You will need to install zig.

Depends on zig-date as a submodule.

git clone --recurse-submodules https://github.com/clarityflowers/sitegen.git
cd sitegen
zig build

This will produce zig-cache/bin/sitegen. To install to, say, ~/bin, you could instead run zig-cache --prefix ~.

#How to read the source

All of the code is inside src/main.zig. At the top of the file is a doc comment with some directions on where to find what you're looking for.