Jacky Zhao
2024-02-17 06e3f8b93d5fbe96e7a05e4eb6be97b6a2d7ead0
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 ?? false
  },
})