+
+ 標籤索引
+
+
+ 目前共有 {tags.length} 個標籤。
+
+
+ {tags.map(({ tag, slug, count }, index) => {
+ const color = colorClasses[index % colorClasses.length];
+ return (
+
+ {tag}
+ ({count})
+
+ );
+ })}
+
+
+ );
+}
+
diff --git a/components/right-sidebar.tsx b/components/right-sidebar.tsx
index e245f3c..4def051 100644
--- a/components/right-sidebar.tsx
+++ b/components/right-sidebar.tsx
@@ -4,7 +4,7 @@ import { getAllPostsSorted, getAllTagsWithCount } from '@/lib/posts';
export function RightSidebar() {
const latest = getAllPostsSorted().slice(0, 5);
- const tags = getAllTagsWithCount().slice(0, 30);
+ const tags = getAllTagsWithCount().slice(0, 5);
return (