moat

Last updated: March 30, 2026

A zero-config static site generator. Write markdown, run moat build, get a site with sidebar nav, search, dark mode, and syntax highlighting. No layout files needed. Moat has a built-in oat layout.

Features

  • Zero config โ€” directory structure is the config, number prefixes control ordering
  • Built-in search โ€” client-side search index with sidebar UI
  • Wiki links โ€” [[Page Title]] resolves to internal page URLs
  • Syntax highlighting โ€” 70 Chroma themes with automatic light/dark mode
  • Layout inheritance โ€” base layout with {{ block }}/{{ define }} variants
  • Shortcodes โ€” reusable components inside markdown
go install github.com/oddship/moat@latest
moat build docs/ _site/