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/