Link tags to tag pages and add tag overview

This commit is contained in:
2025-11-17 18:40:27 +08:00
parent 3253e70a37
commit 7c5962485c
4 changed files with 62 additions and 9 deletions

View File

@@ -47,12 +47,13 @@ export function RightSidebar() {
else if (count >= 3) sizeClass = 'text-xs font-medium';
return (
<span
<Link
key={tag}
className={`${sizeClass} rounded-full bg-slate-100 px-2 py-0.5 text-slate-700 dark:bg-slate-800 dark:text-slate-200`}
href={`/tags/${encodeURIComponent(tag)}`}
className={`${sizeClass} rounded-full bg-slate-100 px-2 py-0.5 text-slate-700 hover:bg-slate-200 dark:bg-slate-800 dark:text-slate-200 dark:hover:bg-slate-700`}
>
{tag}
</span>
</Link>
);
})}
</div>