Ben Schlegel
2023-08-27 c91e62c376d481534d89084e5c04846878dff6d3
quartz/plugins/filters/draft.ts
@@ -2,8 +2,8 @@
export const RemoveDrafts: QuartzFilterPlugin<{}> = () => ({
  name: "RemoveDrafts",
  shouldPublish([_tree, vfile]) {
  shouldPublish(_ctx, [_tree, vfile]) {
    const draftFlag: boolean = vfile.data?.frontmatter?.draft ?? false
    return !draftFlag
  }
  },
})