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

@ -10,7 +10,7 @@ type Props<Tag extends HTMLTag> = Polymorphic<{ as: Tag }> & {
}
const { as: Tag = 'div', post, withDesc = false } = Astro.props
const postDate = post.data.updatedDate ?? post.data.publishDate
const postDate = post.data.date
---
<li class='flex flex-col gap-2 sm:flex-row sm:gap-x-4 [&_q]:basis-full'>