-
{
levels.map(([lvl, count]) => (
- {lvl === "All" ? "全部" : "⭐️".repeat(lvl) || "无"}({count}) @@ -50,7 +50,7 @@ const { posts, tags, levels } = await getAll(collection, tag, level); }
diff --git a/src/layouts/IndexLayout.astro b/src/layouts/IndexLayout.astro index c51c4fb..a660569 100644 --- a/src/layouts/IndexLayout.astro +++ b/src/layouts/IndexLayout.astro @@ -29,19 +29,19 @@ const { posts, tags, levels } = await getAll(collection, tag, level);