mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
chore: update changes from bao
This commit is contained in:
parent
48b7ee5ef8
commit
8baeb59809
@ -76,13 +76,13 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options>> = (userOpts)
|
|||||||
const created = coalesceAliases(data, ["created", "date"])
|
const created = coalesceAliases(data, ["created", "date"])
|
||||||
if (created) data.created = created
|
if (created) data.created = created
|
||||||
const modified = coalesceAliases(data, [
|
const modified = coalesceAliases(data, [
|
||||||
"lastmod",
|
|
||||||
"modified",
|
"modified",
|
||||||
|
"lastmod",
|
||||||
"updated",
|
"updated",
|
||||||
"last-modified",
|
"last-modified",
|
||||||
])
|
])
|
||||||
if (modified) data.modified = modified
|
if (modified) data.modified = modified
|
||||||
const published = coalesceAliases(data, ["publishDate", "published", "date"])
|
const published = coalesceAliases(data, ["published", "publishDate", "date"])
|
||||||
if (published) data.published = published
|
if (published) data.published = published
|
||||||
|
|
||||||
if (socialImage) data.socialImage = socialImage
|
if (socialImage) data.socialImage = socialImage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user