Build sites that
actually ship.
Leaf is a fast, minimal static site generator written in Donna. Write Markdown, pick a layout, run one command. Done.
# create a new site
$ leaf init my-site && cd my-site
# write content
$ leaf new posts/hello-world
# preview and rebuild on changes
$ leaf serve --watch
Serving public at http://localhost:1313
Everything you need.
Nothing you don't.
Leaf stays out of your way so you can focus on writing.
Fast local loop
Build static HTML from Markdown and Mustache layouts, then use serve --watch while you write.
Markdown first
Content is Markdown with TOML front matter. Drafts, tags, dates, weights, and layouts stay in the file.
Flexible layouts
Mustache templates and partials keep themes readable. No template acrobatics required.
Simple structure
A site is just content/, themes/, optional assets, and a small config.toml.
Themeable
Use the default theme, create your own, or keep only the directories your site actually needs.
Deploy anywhere
The output is static HTML, CSS, JavaScript, RSS, and sitemap files. Any static host can serve it.
Up and running in under a minute.
Your project is just files. Leaf gives you defaults, then lets you replace the parts that matter.
Read the docs →website/
├── config.toml
├── content/
│ ├── _index.md
│ ├── about.md
│ └── posts/
│ └── markdown-tour.md
└── themes/
└── default/
├── assets/
│ ├── css/
│ └── js/
└── layouts/
├── home.html
├── page.html
├── post.html
├── doc.html
└── _partials/