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-draft entry is handled automatically (a disabled entry means drafts are published). Run npx quartz plugin doctor --fix to 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