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;