mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	fix: correctly parse falsy js as title (#900)
This commit is contained in:
		@@ -57,9 +57,9 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options> | undefined>
 | 
			
		||||
              },
 | 
			
		||||
            })
 | 
			
		||||
 | 
			
		||||
            if (data.title) {
 | 
			
		||||
            if (data.title != null && data.title.toString() !== "") {
 | 
			
		||||
              data.title = data.title.toString()
 | 
			
		||||
            } else if (data.title === null || data.title === undefined) {
 | 
			
		||||
            } else {
 | 
			
		||||
              data.title = file.stem ?? i18n(cfg.configuration.locale).propertyDefaults.title
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user