diff --git a/src/components/Header.astro b/src/components/Header.astro
index 757634c..ca8b5a6 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -24,6 +24,10 @@ const t = getTranslations(lang);
padding-top: 0.5rem;
}
+ .site-header .header-nav h1 {
+ font-size: 2.5rem;
+ }
+
.theme-icon-wrap {
position: absolute;
top: 0;
diff --git a/src/components/Posts/PostList.astro b/src/components/Posts/PostList.astro
index 81f7961..95da919 100644
--- a/src/components/Posts/PostList.astro
+++ b/src/components/Posts/PostList.astro
@@ -1,7 +1,10 @@
---
import { getCollection } from "astro:content";
import PostItem from "./PostItem.astro";
+import { getLangFromUrl, getTranslations, type Lang } from "@/i18n";
+const lang = getLangFromUrl(Astro.url);
+const t = getTranslations(lang);
const allPosts = await getCollection("blog");
---
@@ -14,7 +17,7 @@ const allPosts = await getCollection("blog");
return (
diff --git a/src/i18n/en.ts b/src/i18n/en.ts
index 5a2b4b8..e386215 100644
--- a/src/i18n/en.ts
+++ b/src/i18n/en.ts
@@ -40,6 +40,9 @@ export default {
"In addition, this blog is fully open source. You can find its source code through the link in the footer.",
]
},
+ tags: {
+ title: "Tags"
+ },
footer: {
githubIntro: 'See more on GitHub!',
repoIntro: 'This blog is fully open source at ClovertaTheTrilobita/SanYeCao-blog'
diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts
index 64bce07..56a764c 100644
--- a/src/i18n/zh.ts
+++ b/src/i18n/zh.ts
@@ -40,6 +40,9 @@ export default {
"此外,这个博客完全开源,你可以从页脚的链接处获取它的源代码。",
]
},
+ tags: {
+ title: "标签"
+ },
footer: {
githubIntro: '在 GitHub 查看更多!',
repoIntro: '这个博客完全开源于 ClovertaTheTrilobita/SanYeCao-blog'
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index d5cfb3a..1453d63 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -1,6 +1,7 @@
---
import Footer from "@/components/Footer.astro";
import Header from "@/components/Header.astro";
+import { ClientRouter } from "astro:transitions";
const { pageTitle } = Astro.props;
---
@@ -14,10 +15,13 @@ const { pageTitle } = Astro.props;
{pageTitle}
+
-
+
+
+