mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-25 03:31:29 +08:00
fix: show the title only if the list has items
This commit is contained in:
@ -18,7 +18,7 @@ const { as: Tag = "div", post, withDesc = false } = Astro.props;
|
||||
<Tag>
|
||||
{post.data.draft && <span class="text-red-500">(Draft) </span>}
|
||||
<a class="cactus-link" data-astro-prefetch href={`/posts/${post.id}/`}>
|
||||
{post.data.fixedToTop && <span class="text-accent-2">*</span>}
|
||||
{post.data.fixedToTop && <span class="text-accent-2 mr-2">*</span>}
|
||||
{post.data.title}
|
||||
</a>
|
||||
</Tag>
|
||||
|
Reference in New Issue
Block a user