diff --git a/src/layouts/IndexLayout.astro b/src/layouts/IndexLayout.astro index d3dface..6713e54 100644 --- a/src/layouts/IndexLayout.astro +++ b/src/layouts/IndexLayout.astro @@ -85,16 +85,19 @@ const { posts, tags, levels } = await getAll(collection, tag, level); - + { levels.map(([lvl, count]) => ( - + {lvl === "All" ? "全部" : "⭐️".repeat(lvl) || "无"}({count}) @@ -103,16 +106,19 @@ const { posts, tags, levels } = await getAll(collection, tag, level); - + { tags.map(([tg, count]) => ( - + {tg === "All" ? "全部" : tg}({count})