Julia van der Kris
2024-10-07 313cef60ee8d2454263d8ae7671c846f4d418f0e
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
  },
})