mirror of
https://github.com/Ad-closeNN/blog-fuwari.git
synced 2026-05-31 02:00:05 -04:00
feat(config): 加入 周日知更鸟主题
Fuwari 藏得东西还是太多了 1. 知更鸟背景 2. 档案,在银河中孤独摇摆 3. 紫色主题色
This commit is contained in:
@@ -129,7 +129,9 @@ const bannerOffset =
|
||||
}
|
||||
|
||||
// Load the hue from local storage
|
||||
const hue = localStorage.getItem('hue') || configHue;
|
||||
const currentDay = new Date().getDay();
|
||||
const hue = currentDay === 3 ? 290 : (localStorage.getItem('hue') || configHue);
|
||||
//const hue = localStorage.getItem('hue') || configHue;
|
||||
document.documentElement.style.setProperty('--hue', hue);
|
||||
|
||||
// calculate the --banner-height-extend, which needs to be a multiple of 4 to avoid blurry text
|
||||
|
||||
Reference in New Issue
Block a user