调整文章日期显示

This commit is contained in:
tangly1024.com
2023-06-29 12:44:46 +08:00
parent d07a145029
commit 9ac2bbb180
31 changed files with 61 additions and 67 deletions

View File

@@ -22,7 +22,7 @@ export const LayoutArchive = props => {
key={post.id}
className="border-l-2 p-1 text-xs md:text-base items-center hover:scale-x-105 hover:border-gray-500 dark:hover:border-gray-300 dark:border-gray-400 transform duration-500"
>
<div id={post?.date?.start_date}>
<div id={post?.publishTime}>
<span className="text-gray-400">
{post.date?.start_date}
</span>{' '}

View File

@@ -20,7 +20,7 @@ export const LayoutSlug = props => {
const { locale } = useGlobal()
const date = formatDate(
post?.date?.start_date || post?.createdTime,
post?.publishTime || post?.createdTime,
locale.LOCALE
)
if (!post) {