Open source · MIT licensed

Static sites, simply.

One Go binary turns HTML, Markdown and JSON into a fast static site. Live reload, a built-in CMS, public share links and one-command publishing come with it, with nothing else to install.

alt install altlimit/sitegen

Content

Write in Markdown, lay out with templates

Pages are files. Frontmatter sets the layout and metadata, and the body is HTML or Markdown.

  • YAML frontmatter, available in templates as .title
  • GitHub-flavored Markdown with heading anchors
  • Any layout from templates/, chosen per page
Pages and content
src/blog/hello.md
---
title: Hello, world
date: 2026-11-19
template: post.html
---

Write posts in **Markdown**. Tables, task
lists and fenced code blocks just work.

- [x] Write the post
- [ ] Send the preview link

Templates

Lists, pagination and data without plugins

Query your own files from any template. Sort and filter them, and split long lists across pages.

  • sources finds files by path, name or frontmatter
  • paginate writes /blog/2, /blog/3 and so on
  • page generates a page for each item in your data
Template functions
src/blog.html
{{ $posts := sort "Meta.date" "desc" (sources "RelPath" "blog/*") }}

{{ range paginate 10 $posts }}
  <a href="{{.Path}}">
    <h2>{{ .Meta.title }}</h2>
    <time>{{ .Meta.date }}</time>
  </a>
{{ end }}

{{ range pages .Source }}
  <a href="{{.Path}}">{{ .Page }}</a>
{{ end }}

Workflow

Three commands from idea to deployed

  1. Create

    Scaffold a site with layouts, a blog, docs and a CMS config.

    sitegen -create
  2. Develop

    Run the dev server with live reload. Add -share for a public link.

    sitegen -serve
  3. Ship

    Publish to altengine in one command, or build into public/ for any static host.

    sitegen -publish

Build your next site with SiteGen

Free and open source. Install it in one command and have a site running in a minute.