Update draft.ts

This commit is contained in:
Seohyun Kim 2024-07-01 07:41:56 +09:00 committed by GitHub
parent e0236d85b7
commit e9a43160d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
},
})