Skip to content

Commit

Permalink
🔄 synced local 'quartz/' with remote 'quartz/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Feb 20, 2024
1 parent c350194 commit a3e12bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quartz/plugins/transformers/frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a3e12bc

Please sign in to comment.