From 29102fc51b072436e436e0616471cb8fc7c9444e Mon Sep 17 00:00:00 2001 From: Ad-closeNN <1709301095@qq.com> Date: Sun, 31 Aug 2025 00:38:16 +0800 Subject: [PATCH] =?UTF-8?q?docs(pages):=20=E8=8E=B7=E5=BE=97=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=96=B0=E7=9A=84=E5=85=8D=E8=B4=B9=20.dev?= =?UTF-8?q?=20=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2. del(theme): 删除周日知更鸟主题的代码部分,资源文件未删除 3. chore(profile): 左侧个人资料 Profile 更换音乐:茉子の日常 4. chore(config): 删除 navbar 的“仓库信息”,重新加入 Home 按钮 5. docs(pages): 更新相关文档页面内容 6. fix(css): 修复复制按钮未正确显示的问题 7. chore(footer): 新增茶备案号 2025080144 --- src/components/ConfigCarrier.astro | 12 +-- src/components/Footer.astro | 2 + src/components/widget/Profile.astro | 28 +---- src/config.ts | 6 +- .../domain-cloudflare-adclosenn.dev.png | Bin 0 -> 391011 bytes .../images/domain-qqmail-adclosenn.dev.png | Bin 0 -> 78705 bytes src/content/posts/new-free-dev-domain.md | 22 ++++ src/content/spec/about.md | 15 ++- src/layouts/Layout.astro | 17 +-- src/layouts/MainGridLayout.astro | 98 +++--------------- src/styles/markdown.css | 2 +- src/utils/setting-utils.ts | 14 +-- 12 files changed, 58 insertions(+), 158 deletions(-) create mode 100644 src/content/assets/images/domain-cloudflare-adclosenn.dev.png create mode 100644 src/content/assets/images/domain-qqmail-adclosenn.dev.png create mode 100644 src/content/posts/new-free-dev-domain.md diff --git a/src/components/ConfigCarrier.astro b/src/components/ConfigCarrier.astro index 6ff2db2..71a7621 100644 --- a/src/components/ConfigCarrier.astro +++ b/src/components/ConfigCarrier.astro @@ -2,15 +2,7 @@ import { siteConfig } from "../config"; -// 周日判断 -const isSunday = new Date().getDay() === 0; - -// 这tm重置色 --- -{isSunday && -
-} -{!isSunday && -
-} +
+
\ No newline at end of file diff --git a/src/components/Footer.astro b/src/components/Footer.astro index c1aee17..92fc1a8 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -11,6 +11,8 @@ const currentYear = new Date().getFullYear();
+ 茶ICP备2025080144号 +
萌ICP备20256087号
© {currentYear} {profileConfig.name}. All Rights Reserved. diff --git a/src/components/widget/Profile.astro b/src/components/widget/Profile.astro index a8d8ca7..d9bb014 100644 --- a/src/components/widget/Profile.astro +++ b/src/components/widget/Profile.astro @@ -29,19 +29,7 @@ const config = profileConfig;
- - -
@@ -80,20 +68,6 @@ const config = profileConfig;
- - - - + \ No newline at end of file diff --git a/src/styles/markdown.css b/src/styles/markdown.css index 7d214d5..154378d 100644 --- a/src/styles/markdown.css +++ b/src/styles/markdown.css @@ -100,4 +100,4 @@ margin: 1em 0; } -} +} \ No newline at end of file diff --git a/src/utils/setting-utils.ts b/src/utils/setting-utils.ts index 835e20c..b6d7484 100644 --- a/src/utils/setting-utils.ts +++ b/src/utils/setting-utils.ts @@ -14,24 +14,12 @@ export function getDefaultHue(): number { } export function getHue(): number { - const currentDay = new Date().getDay(); - // 去你妈的给我查日期先 - if (currentDay === 0){ - return 290; - } - // 如果不是,则返回默认值 const stored = localStorage.getItem("hue"); return stored ? Number.parseInt(stored) : getDefaultHue(); } export function setHue(hue: number): void { - const currentDay = new Date().getDay(); - if (currentDay === 0){ - // - } - if (currentDay != 0){ - localStorage.setItem("hue", String(hue)); - } + localStorage.setItem("hue", String(hue)); const r = document.querySelector(":root") as HTMLElement; if (!r) { return;