fix theme...
This commit is contained in:
9
themes/anzhiyu/layout/includes/mourn.pug
Normal file
9
themes/anzhiyu/layout/includes/mourn.pug
Normal file
@@ -0,0 +1,9 @@
|
||||
script.
|
||||
function initMourn() {
|
||||
const date = new Date();
|
||||
const today = (date.getMonth() + 1) + "-" + date.getDate()
|
||||
const mourn_days = !{JSON.stringify(theme.mourn.days)}
|
||||
if (mourn_days.includes(today)) {
|
||||
document.documentElement.style.filter = "grayscale(1)";
|
||||
}}
|
||||
initMourn();
|
||||
Reference in New Issue
Block a user