Emile Bangma
2024-10-22 d98a3a088a76e5965a8fbf51a812e169abe1dde8
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"
  },
})