feat: rehype code block
This commit is contained in:
parent
f705c07d55
commit
0cf5cf226c
20 changed files with 503 additions and 145 deletions
|
@ -65,21 +65,23 @@ if (
|
|||
<div
|
||||
class="mb-2 flex items-center space-x-2 text-xs text-muted-foreground"
|
||||
>
|
||||
{author && (
|
||||
<>
|
||||
<div class="flex items-center gap-1.5">
|
||||
<Image
|
||||
src={author.data.avatar}
|
||||
alt={author.data.name}
|
||||
width={18}
|
||||
height={18}
|
||||
class="rounded-full"
|
||||
/>
|
||||
<span>{author.data.name}</span>
|
||||
</div>
|
||||
<Separator orientation="vertical" className="h-4" />
|
||||
</>
|
||||
)}
|
||||
{
|
||||
author && (
|
||||
<>
|
||||
<div class="flex items-center gap-1.5">
|
||||
<Image
|
||||
src={author.data.avatar}
|
||||
alt={author.data.name}
|
||||
width={18}
|
||||
height={18}
|
||||
class="rounded-full"
|
||||
/>
|
||||
<span>{author.data.name}</span>
|
||||
</div>
|
||||
<Separator orientation="vertical" className="h-4" />
|
||||
</>
|
||||
)
|
||||
}
|
||||
<span>{formattedDate}</span>
|
||||
<Separator orientation="vertical" className="h-4" />
|
||||
<span>{readTime}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue