mirror of
https://github.com/jackyzha0/quartz
synced 2026-11-27 22:14:40 +01:00
1.3 KiB
1.3 KiB
title, description, aliases, tags, image, enabled, required
| title | description | aliases | tags | image | enabled | required | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| RemoveDrafts | Built-in draft handling (formerly the remove-draft plugin). Pages with draft true are not published. |
|
|
true | false |
Draft handling is built-in processing (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: false
Note
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