Jacky Zhao
2023-08-05 9e76b257d4be4b9e6ea7b514074ef74d8d125f4b
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
  }
  },
})