Jacky Zhao
2024-02-11 ab0e20b4d0ad1e650126ffd0afa7d0ed6bd46da2
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
  },
})