feat: use date not publishDate

This commit is contained in:
KazooTTT
2024-07-25 17:48:35 +08:00
parent 0b8b30c99c
commit d99e484aa9
7 changed files with 21 additions and 18 deletions

View File

@ -13,12 +13,12 @@ interface Props {
const { post } = Astro.props
const {
data: { description, ogImage, publishDate, title, updatedDate },
data: { description, ogImage, title, date },
slug
} = post
const socialImage = ogImage ?? `/og-image/${slug}.png`
const articleDate = updatedDate?.toISOString() ?? publishDate.toISOString()
const articleDate = date?.toISOString()
const { headings } = await post.render()
---