dependabot[bot]
2024-01-29 fbb4d7e39928d7e4c7d6cdea3566e00f58f1a0b5
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
  },
})