Emile Bangma
2024-10-22 ad52d095670f2a08a330d1d4ee5ed4bc784e65aa
1
2
3
4
5
6
7
8
import { QuartzFilterPlugin } from "../types"
 
export const ExplicitPublish: QuartzFilterPlugin = () => ({
  name: "ExplicitPublish",
  shouldPublish(_ctx, [_tree, vfile]) {
    return vfile.data?.frontmatter?.publish === true || vfile.data?.frontmatter?.publish === "true"
  },
})