mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
update: post page layout
This commit is contained in:
parent
7861156651
commit
e2cce321fc
7 changed files with 61 additions and 29 deletions
|
@ -25,19 +25,23 @@ const { Content, remarkPluginFrontmatter } = await post.render()
|
|||
postImage={post.data.image}
|
||||
>
|
||||
<article class="heti">
|
||||
<h1>
|
||||
<h1 class="post-title">
|
||||
<span transition:name={`post-${post.data.slug || post.slug}`}>
|
||||
{post.data.title}
|
||||
</span>
|
||||
</h1>
|
||||
<time>
|
||||
<span>
|
||||
{post.data.published.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit' }).replace('/', '-')}
|
||||
|
||||
<div
|
||||
class="mb-20.5 block c-primary font-time"
|
||||
transition:name={`time-${post.data.slug || post.slug}`}
|
||||
>
|
||||
<time>
|
||||
{post.data.published.toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '-')}
|
||||
</time>
|
||||
<span class="ml-2">
|
||||
{remarkPluginFrontmatter.minutes} min
|
||||
</span>
|
||||
<span>
|
||||
{remarkPluginFrontmatter.minutes} min
|
||||
</span>
|
||||
</time>
|
||||
</div>
|
||||
<Content />
|
||||
</article>
|
||||
</Layout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue