mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-25 11:41:29 +08:00
feat: use date not publishDate
This commit is contained in:
@ -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()
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user