This plugin filters content based on an explicit publish flag in the frontmatter, allowing only content that is explicitly marked for publication to pass through. It’s the opt-in version of RemoveDrafts. See private pages for more information.

Note

For information on how to add, remove or configure plugins, see the Configuration page.

This plugin has no configuration options.

Files without frontmatter — .base, .canvas and .excalidraw files — can’t be marked publish: true. They are published when a published page links to them ([[Board.canvas]], or an embed such as ![[Board.canvas]]), like Obsidian Publish adding the files a published note links to, and not otherwise. A base embedded in a published note renders inside it without a page of its own. A drawing stored as Markdown (.excalidraw.md) follows its own publish: like a note. (Quartz 5.1+.)

Tip

Images and other files are copied to your site whether or not a published page uses them. Set configuration.publishAssets: referenced to only publish the files that published pages link to or embed.

API

  • Category: Filter
  • Function name: ExternalPlugin.ExplicitPublish().
  • Source: quartz-community/explicit-publish
  • Install: npx quartz plugin add @quartz-community/explicit-publish