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
$ sitegen -create Site template created: ./site $ sitegen -serve -share ✓ Built site Local http://localhost:8888/ Public https://k3x9q2m7a4bz.sitegen.dev/ Watching for changes…
Features
Everything a content site needs
Nothing to configure before you start, and no plugins to keep up to date.
Incremental builds
Only the files you change are rebuilt, and listing pages update when the content they list changes.
Live reload
The dev server watches your site and refreshes the browser every time you save.
Go templates
Layouts, partials and blocks in Go's template language, with helpers for data, sorting and pagination.
Markdown
GitHub-flavored Markdown with tables, task lists and heading anchors. Template syntax stays literal unless you opt in.
JSON data
Put JSON files in data/ and use them on any page, or generate a page for every item.
Built-in CMS
An editor for pages, blocks, collections and data files that saves to the same source files.
Share previews
Give your dev server a public HTTPS link with live reload, so others can review as you work.
One binary
No runtime and no node_modules. Minifies HTML, CSS and JS, and can convert images to WebP.
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
---
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 linkTemplates
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
{{ $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
Create
Scaffold a site with layouts, a blog, docs and a CMS config.
sitegen -createDevelop
Run the dev server with live reload. Add -share for a public link.
sitegen -serveShip
Publish to altengine in one command, or build into public/ for any static host.
sitegen -publish
Blog
Latest updates
Publish with one command
sitegen -publish builds your site and puts it live on altengine static hosting. It signs you in the first time and uploads only what changed.
Share previews now run on Cloudflare
-share moved from a single server to Cloudflare's network. Links survive reconnects, and you'll need SiteGen v1.0.39 or later.
GitHub-flavored Markdown, and literal template examples
Tables, task lists and heading anchors in Markdown pages, and {{ }} in a Markdown body is now shown as written.
Build your next site with SiteGen
Free and open source. Install it in one command and have a site running in a minute.