* fix: draft bug #1244 * update: contents in folder before creating PR * Update draft.ts
This commit is contained in:
		
							parent
							
								
									f7bd2137ec
								
							
						
					
					
						commit
						21e75acc8d
					
				| @ -3,7 +3,7 @@ import { QuartzFilterPlugin } from "../types" | ||||
| export const RemoveDrafts: QuartzFilterPlugin<{}> = () => ({ | ||||
|   name: "RemoveDrafts", | ||||
|   shouldPublish(_ctx, [_tree, vfile]) { | ||||
|     const draftFlag: boolean = vfile.data?.frontmatter?.draft ?? false | ||||
|     const draftFlag: boolean = vfile.data?.frontmatter?.draft || false | ||||
|     return !draftFlag | ||||
|   }, | ||||
| }) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user