fix: heading levels order

This commit is contained in:
DIYgod 2023-06-21 19:55:26 +01:00
parent 20ff6c947e
commit 7bf1c1395d
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -54,14 +54,14 @@ const PostCard = ({
>
{!simple && <PostCover cover={post.metadata?.content.cover} />}
<div className="flex-1 flex justify-center flex-col w-full min-w-0">
<h3
<h2
className={cn(
"xlog-post-title font-bold text-zinc-700 line-clamp-2",
simple ? "text-xl" : "text-2xl",
)}
>
{post.metadata?.content?.title}
</h3>
</h2>
{!simple && (
<div className="xlog-post-meta text-sm text-zinc-400 mt-1 space-x-4 flex items-center mr-8">
{!!post.metadata?.content?.tags?.filter(

View File

@ -114,9 +114,9 @@ const PostItem = memo(
priority={priority}
/>
<div className="flex-1 flex justify-center flex-col w-full min-w-0">
<h3 className="xlog-post-title text-2xl font-bold text-zinc-700 line-clamp-2">
<h2 className="xlog-post-title text-2xl font-bold text-zinc-700 line-clamp-2">
{post.metadata?.content?.title}
</h3>
</h2>
<div className="xlog-post-meta text-sm text-zinc-400 mt-1 space-x-4 flex items-center mr-8">
<time
dateTime={date.formatToISO(