The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: make filter checks more strict (closes #1519)

+2 -2
+1 -1
quartz/plugins/filters/draft.ts
··· 3 3 export const RemoveDrafts: QuartzFilterPlugin<{}> = () => ({ 4 4 name: "RemoveDrafts", 5 5 shouldPublish(_ctx, [_tree, vfile]) { 6 - const draftFlag: boolean = vfile.data?.frontmatter?.draft || false 6 + const draftFlag: boolean = vfile.data?.frontmatter?.draft === true 7 7 return !draftFlag 8 8 }, 9 9 })
+1 -1
quartz/plugins/filters/explicit.ts
··· 3 3 export const ExplicitPublish: QuartzFilterPlugin = () => ({ 4 4 name: "ExplicitPublish", 5 5 shouldPublish(_ctx, [_tree, vfile]) { 6 - return vfile.data?.frontmatter?.publish ?? false 6 + return vfile.data?.frontmatter?.publish === true 7 7 }, 8 8 })