diff --git a/quartz/plugins/transformers/lastmod.ts b/quartz/plugins/transformers/lastmod.ts index fe8c01bcfa7f9..6609621318e23 100644 --- a/quartz/plugins/transformers/lastmod.ts +++ b/quartz/plugins/transformers/lastmod.ts @@ -48,10 +48,13 @@ export const CreatedModifiedDate: QuartzTransformerPlugin> = (u created ||= st.birthtimeMs modified ||= st.mtimeMs } else if (source === "frontmatter" && file.data.frontmatter) { - created ||= file.data.frontmatter.date as MaybeDate + created ||= file.data.frontmatter.created as MaybeDate + created ||= file.data.frontmatter.date as MaybeDate + modified ||= file.data.frontmatter.modified as MaybeDate modified ||= file.data.frontmatter.lastmod as MaybeDate - modified ||= file.data.frontmatter.updated as MaybeDate + modified ||= file.data.frontmatter.updated as MaybeDate modified ||= file.data.frontmatter["last-modified"] as MaybeDate + published ||= file.data.frontmatter.published as MaybeDate published ||= file.data.frontmatter.publishDate as MaybeDate } else if (source === "git") { if (!repo) {