dashboard
repositories
filestore
activity
search
login
scapegoat
/
Docs2
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
fix ci, disable strict path type checks by default
Jacky Zhao
2023-07-16
a3e4c86a4cf18e31fe5b65d57ce120174c9f6aee
[scapegoat/Docs2.git]
/
quartz
/
plugins
/
filters
/
draft.ts
1
2
3
4
5
6
7
8
9
import { QuartzFilterPlugin } from "../types"
export const RemoveDrafts: QuartzFilterPlugin<{}> = () => ({
name: "RemoveDrafts",
shouldPublish([_tree, vfile]) {
const draftFlag: boolean = vfile.data?.frontmatter?.draft ?? false
return !draftFlag
}
})