mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-23 02:31:33 +08:00
feat: use date not publishDate
This commit is contained in:
@ -34,7 +34,7 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {
|
||||
{data.draft ? <span class='text-red-500'>(Draft)</span> : null}
|
||||
<div class='flex flex-wrap items-center gap-x-3 gap-y-2'>
|
||||
<p class='text-xs'>
|
||||
<FormattedDate date={data.publishDate} dateTimeOptions={dateTimeOptions} /> /{' '}
|
||||
<FormattedDate date={data.date} dateTimeOptions={dateTimeOptions} /> /{' '}
|
||||
{remarkPluginFrontmatter.minutesRead}
|
||||
</p>
|
||||
</div>
|
||||
@ -79,11 +79,11 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {
|
||||
)
|
||||
}
|
||||
|
||||
{
|
||||
data.updatedDate && (
|
||||
<!-- {
|
||||
data.date && (
|
||||
<p class='mt-6 text-base'>
|
||||
Last Updated:
|
||||
<FormattedDate class='ms-1' date={data.updatedDate} dateTimeOptions={dateTimeOptions} />
|
||||
<FormattedDate class='ms-1' date={data.date} dateTimeOptions={dateTimeOptions} />
|
||||
</p>
|
||||
)
|
||||
}
|
||||
} -->
|
||||
|
Reference in New Issue
Block a user