{categories.map((category) => (
-
+
{category}
))}
@@ -98,15 +92,9 @@ const displayDate = pubDate ? dayjs(pubDate).format(DATE_FORMAT) : "";
))}
{categories.length === 0 && (
-
- {t("label.noCategory")}
-
- )}
- {tags.length === 0 && (
-
- {t("label.noTag")}
-
+
{t("label.noCategory")}
)}
+ {tags.length === 0 &&
{t("label.noTag")}}
diff --git a/src/components/CategoryCard.astro b/src/components/CategoryCard.astro
index bb1e1fd..bfa6062 100644
--- a/src/components/CategoryCard.astro
+++ b/src/components/CategoryCard.astro
@@ -2,7 +2,7 @@
import { getCollection } from "astro:content";
import CardAside from "../layouts/CardAside.astro";
import TagButton from "../widget/TagButton.astro";
-import { t } from "i18next";
+import { t } from "@/locales";
interface CategoryCount {
category: string;
@@ -30,12 +30,7 @@ const tagsWithCounts = await getTagsWithCounts();
{
tagsWithCounts.map(({ category, count }) => (
-
+
))
}
diff --git a/src/components/CommentWaline.astro b/src/components/CommentWaline.astro
index c3ad908..c92ab43 100644
--- a/src/components/CommentWaline.astro
+++ b/src/components/CommentWaline.astro
@@ -3,22 +3,17 @@ import { SERVER_URL } from "../consts";
---
-
+