astwerk

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@latest

The 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?

What do you need to follow along?

Your progress

Tick each step as you finish it. Progress is saved in your browser, so you can come back to the same place.

0 / 10 complete