Skip to content

Commit 700eb86

Browse files
committed
made the badge and category into link
1 parent e045b29 commit 700eb86

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/pages/software/[slug].astro

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,17 @@ const { entry } = Astro.props;
3434
</div>
3535
<div>
3636
<div class="flex items-center gap-2 mb-4 flex-wrap">
37-
<span
38-
class="text-blue-600 dark:text-blue-400 cursor-pointer bg-blue-100 dark:bg-blue-500/15 py-1 px-3 rounded-full text-sm">
39-
{entry.data.Category}
40-
</span>
37+
<a href={"/software?category=" + entry.data.Category}>
38+
<span
39+
class="text-blue-600 dark:text-blue-400 cursor-pointer bg-blue-100 dark:bg-blue-500/15 py-1 px-3 rounded-full text-sm">
40+
{entry.data.Category}
41+
</span>
42+
</a>
4143
{
4244
entry.data.Tags.slice(0, 5).map((tag) => (
43-
<Badge variant="secondary">{tag}</Badge>
45+
<a href={`/software?tag=${tag}`}>
46+
<Badge variant="secondary">{tag}</Badge>
47+
</a>
4448
))
4549
}
4650
</div>

0 commit comments

Comments
 (0)