mirror of
https://github.com/Ad-closeNN/blog-fuwari.git
synced 2026-05-31 01:20:06 -04:00
feat(config): 加入 周日知更鸟主题
Fuwari 藏得东西还是太多了 1. 知更鸟背景 2. 档案,在银河中孤独摇摆 3. 紫色主题色
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
---
|
||||
|
||||
import { siteConfig } from "../config";
|
||||
---
|
||||
|
||||
<div id="config-carrier" data-hue={siteConfig.themeColor.hue}>
|
||||
</div>
|
||||
// 周日判断
|
||||
const isSunday = new Date().getDay() === 0;
|
||||
|
||||
// 这tm重置色
|
||||
---
|
||||
{isSunday &&
|
||||
<div id="config-carrier" data-hue={290}></div>
|
||||
}
|
||||
{!isSunday &&
|
||||
<div id="config-carrier" data-hue={siteConfig.themeColor.hue}></div>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user