mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
Update draft.ts
This commit is contained in:
parent
e0236d85b7
commit
e9a43160d5
@ -4,7 +4,6 @@ export const RemoveDrafts: QuartzFilterPlugin<{}> = () => ({
|
||||
name: "RemoveDrafts",
|
||||
shouldPublish(_ctx, [_tree, vfile]) {
|
||||
const draftFlag: boolean = vfile.data?.frontmatter?.draft || false
|
||||
console.log(`######${draftFlag}`);
|
||||
return !draftFlag
|
||||
},
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user