Tomoya Matsuura(MacBookPro)
312a2330c3
All checks were successful
Build / build (push) Successful in 2m11s
9 lines
235 B
TypeScript
9 lines
235 B
TypeScript
import { QuartzFilterPlugin } from "../types"
|
|
|
|
export const ExplicitPublish: QuartzFilterPlugin = () => ({
|
|
name: "ExplicitPublish",
|
|
shouldPublish(_ctx, [_tree, vfile]) {
|
|
return vfile.data?.frontmatter?.publish ?? false
|
|
},
|
|
})
|