Build a site
Ten steps from an empty directory to a complete site: pages, a layout, a markdown collection, a locale, a live widget, and a dev loop. Each step is one change — follow them in order, and every snippet here is the whole change for its step. You need Go and the templ CLI.
go install github.com/a-h/templ/cmd/templ@latestThe finished site is plain static HTML that deploys anywhere. If you would rather copy a starting point than type one, the starter templates are this same shape, pre-written.
How does astwerk generate a site?
You describe the output directory as an ssg.Node tree and call ssg.Build — no config file, no convention scanner.
What do you need to follow along?
The site is a Go program: you need the go toolchain and the templ CLI, which compiles .templ files to Go.
Your progress
Tick each step as you finish it. Progress is saved in your browser, so you can come back to the same place.