Jacky Zhao
2023-10-04 cf0c090e3c5af86097e2460b00adc52ef8555e9d
quartz/plugins/filters/explicit.ts
@@ -2,8 +2,8 @@
export const ExplicitPublish: QuartzFilterPlugin = () => ({
  name: "ExplicitPublish",
  shouldPublish([_tree, vfile]) {
  shouldPublish(_ctx, [_tree, vfile]) {
    const publishFlag: boolean = vfile.data?.frontmatter?.publish ?? false
    return publishFlag
  }
  },
})