Julia van der Kris
2024-10-07 313cef60ee8d2454263d8ae7671c846f4d418f0e
quartz/plugins/filters/explicit.ts
@@ -2,8 +2,7 @@
export const ExplicitPublish: QuartzFilterPlugin = () => ({
  name: "ExplicitPublish",
  shouldPublish([_tree, vfile]) {
    const publishFlag: boolean = vfile.data?.frontmatter?.publish ?? false
    return publishFlag
  }
  shouldPublish(_ctx, [_tree, vfile]) {
    return vfile.data?.frontmatter?.publish ?? false
  },
})