Skip to content

Drafts that never leak

Set draft: true on any page and it disappears from a production build — no HTML in dist, no entry in routes.json, and crucially no entry in sitemap.xml or rss.xml, even if the draft also carries a date:.

The filter lives at one chokepoint — route discovery — so every downstream consumer only ever sees published pages. darkmown dev still builds and serves your drafts (with a visible banner), and darkmown build --drafts includes them for a staging preview.