Static sites, checked.

Heine is a static-site generator written in Rust. It checks your pages, assets, and their relationships as it builds your site.

A missing page or asset referenced through Heine, or two outputs claiming the same path, stops a full build with a diagnostic that points to the problem.

Build your site

Start with the starter site and adapt its layout, or write your own templates. A page can combine a template and metadata with Markdown content.

When an article needs sources, add citations from a local bibliography and place a reference list in its template. For mathematical writing, Heine can render formulas as MathML during the build. An image with light and dark variants lets the browser select the version that fits the reader's color scheme.

As you add pages, use collections to group and order them for a blog index or feed. A multilingual site can give each language its own content and routes while sharing templates.

Preview the result locally with heine serve.

Errors point to the source

Here, a template refers to a page named home that does not exist. Heine stops the build and points to the call:

  × render error in template "base.tera": rendered page "home" was not found
  │ for locale "en" (while rendering page index (en) to index.html)
   ╭─[templates/base.tera:6:15]
 6 │ {% set home = page(id='home') %}
   ·               ───────┬───────
   ·                      ╰── error here
   ╰────

Documentation and source

The documentation includes a first-site guide, focused guides, and the complete reference. The source code is on GitHub.