mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 20:01:33 +02:00
test: code block style
This commit is contained in:
parent
85de183ccc
commit
dc24da0cb7
13 changed files with 206 additions and 277 deletions
|
@ -6,8 +6,8 @@ import { generateDescription } from '@/utils/description'
|
|||
import { isTagPage } from '@/utils/page'
|
||||
|
||||
type Post = CollectionEntry<'posts'> & {
|
||||
remarkPluginFrontmatter?: {
|
||||
minutes?: number
|
||||
remarkPluginFrontmatter: {
|
||||
minutes: number
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ function getPostPath(post: Post) {
|
|||
>
|
||||
<PostDate
|
||||
date={post.data.published}
|
||||
minutes={post.remarkPluginFrontmatter?.minutes}
|
||||
minutes={post.remarkPluginFrontmatter.minutes}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
@ -64,7 +64,7 @@ function getPostPath(post: Post) {
|
|||
>
|
||||
<PostDate
|
||||
date={post.data.published}
|
||||
minutes={post.remarkPluginFrontmatter?.minutes}
|
||||
minutes={post.remarkPluginFrontmatter.minutes}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue