diff --git a/src/components/LightDarkSwitch.svelte b/src/components/LightDarkSwitch.svelte
deleted file mode 100644
index b676c7b..0000000
--- a/src/components/LightDarkSwitch.svelte
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
+
加载中...
diff --git a/src/components/widget/ThemeSettingsBlock.svelte b/src/components/widget/ThemeSettingsBlock.svelte
new file mode 100644
index 0000000..c7053c2
--- /dev/null
+++ b/src/components/widget/ThemeSettingsBlock.svelte
@@ -0,0 +1,349 @@
+
+
+
+
+
+
+
+
+
+
+
+ {#if showThemeColor}
+
+
+ {i18n(I18nKey.themeColor)}
+
+
+
+
+
+
+
+ {/if}
+
+
+
+ 字体系列
+
+
+
+
+
+
+
+
+
+ 字体系列 会在 自定义 CSS 之后注入,所以字体设置优先级更高。
+
+
+
+
+
+
diff --git a/src/components/widget/TotalWords.astro b/src/components/widget/TotalWords.astro
index 03ce201..19f5213 100644
--- a/src/components/widget/TotalWords.astro
+++ b/src/components/widget/TotalWords.astro
@@ -1,15 +1,15 @@
---
-import { Icon } from "astro-icon/components";
import I18nKey from "@i18n/i18nKey";
import { i18n } from "@i18n/translation";
import { getTotalWords } from "@utils/content-utils";
+import { Icon } from "astro-icon/components";
const totalWords = await getTotalWords();
const formattedTotalWords = totalWords.toLocaleString("zh-CN");
---
-
+
总计 {formattedTotalWords} {i18n(I18nKey.wordsCount)}
diff --git a/src/components/widget/WidgetLayout.astro b/src/components/widget/WidgetLayout.astro
index 870dcfb..3f223c5 100644
--- a/src/components/widget/WidgetLayout.astro
+++ b/src/components/widget/WidgetLayout.astro
@@ -24,7 +24,7 @@ const className = Astro.props.class;
{isCollapsed &&
}
diff --git a/src/config.ts b/src/config.ts
index 53800a3..ec537fb 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -11,6 +11,7 @@ import { LinkPreset } from "./types/config";
export const siteConfig: SiteConfig = {
title: "Ad_closeNN 的小站",
subtitle: "Ad_closeNN の 小站,时不时会刷新一些野生东西 | ✨ 欢迎友链 ✨",
+ githubRepo: "https://github.com/Ad-closeNN/blog-fuwari",
lang: "zh_CN", // Language code, e.g. 'en', 'zh-CN', 'ja', etc.
themeColor: {
hue: 160, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 6c9baf4..4af5b1a 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -276,7 +276,7 @@ const bannerOffset =
-
+
本站近期遭到反诈部门 DNS 污染,可能无法正常访问。如有需要可开启代理或使用国外 DNS 服务器。