mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
update: optimize the ordering of top posts and tags
This commit is contained in:
parent
4fc12b804c
commit
0402ac4c09
14 changed files with 48 additions and 67 deletions
|
@ -43,9 +43,14 @@ const { Content, remarkPluginFrontmatter } = await post.render()
|
|||
<time>
|
||||
{post.data.published.toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '-')}
|
||||
</time>
|
||||
<span class="ml-1.25">
|
||||
<span class="ml-1.5">
|
||||
{remarkPluginFrontmatter.minutes} min
|
||||
</span>
|
||||
{post.data.updated && (
|
||||
<span class="ml-1.5">
|
||||
updated {post.data.updated.toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '-')}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<Content />
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue