Sean Missingham
2024-07-01 f7bd2137ecbb81f3ed50ae9ccaaee27ae855c11a
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
  },
})