mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
fix: improve Tag component by making it entire component clickable (#598)
Update Tag component structure/styles and make the entire component clickable
This commit is contained in:
@@ -16,8 +16,8 @@ let tags = getUniqueTags(posts);
|
||||
<Layout title={`Tags | ${SITE.title}`}>
|
||||
<Header />
|
||||
<Main pageTitle="Tags" pageDesc="All the tags used in posts.">
|
||||
<ul>
|
||||
{tags.map(({ tag, tagName }) => <Tag {tag} {tagName} size="lg" />)}
|
||||
<ul class="flex flex-wrap gap-6">
|
||||
{tags.map(({ tag, tagName }) => <Tag {tag} {tagName} />)}
|
||||
</ul>
|
||||
</Main>
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user