Emile Bangma
2024-03-31 5ec61468d5e787b3c8ae32a2b4ef1595cf0bc3ee
quartz/plugins/filters/explicit.ts
@@ -3,11 +3,6 @@
export const ExplicitPublish: QuartzFilterPlugin = () => ({
  name: "ExplicitPublish",
  shouldPublish(_ctx, [_tree, vfile]) {
    const publishProperty = vfile.data?.frontmatter?.publish ?? false
    const publishFlag =
      typeof publishProperty === "string"
        ? publishProperty.toLowerCase() === "true"
        : Boolean(publishProperty)
    return publishFlag
    return vfile.data?.frontmatter?.publish ?? false
  },
})