Draft handling is built into Quartz (it used to be the remove-draft plugin): pages with draft: true in their frontmatter are not published. This prevents private pages from being published. All other pages are left intact.
Configure it under configuration.drafts in quartz.config.yaml:
publish: set totrueto publish drafts anyway, e.g. for a preview deployment. Defaults tofalse.enabled:falsehas the same effect aspublish: true.
configuration:
drafts:
publish: falseNote
An existing
@quartz-community/remove-draftentry is handled automatically (a disabled entry means drafts are published). Runnpx quartz plugin doctor --fixto move it.
For the opposite approach — only publish pages marked publish: true — enable ExplicitPublish.
API
- Category: Filter (built-in)
- Source:
quartz/plugins/builtins/drafts.ts