Jacky Zhao
2023-09-13 6ecdcb5e24f2783e6fa73de69e848f0f319c4fc4
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
  }
  },
})