Skip to content

Commit bfe052c

Browse files
committed
Fix no spaces before reading time
1 parent 838ea28 commit bfe052c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/components/blog/SinglePost.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const { Content } = post;
3030
post.author && (
3131
<>
3232
{' '}
33-
·{' '}<Icon name="tabler:user" class="w-4 h-4 inline-block -mt-0.5 dark:text-gray-400" />
33+
· <Icon name="tabler:user" class="w-4 h-4 inline-block -mt-0.5 dark:text-gray-400" />
3434
<span class="inline-block">{post.author}</span>
3535
</>
3636
)
@@ -46,7 +46,13 @@ const { Content } = post;
4646
</>
4747
)
4848
}
49-
{post.readingTime && <> · {post.readingTime} min read</>}
49+
{
50+
post.readingTime && (
51+
<>
52+
&nbsp;· <span>{post.readingTime}</span> min read
53+
</>
54+
)
55+
}
5056
</p>
5157
</div>
5258

0 commit comments

Comments
 (0)