diff --git a/index.js b/index.js index d20bb47..0575a89 100644 --- a/index.js +++ b/index.js @@ -181,6 +181,56 @@ function pageUpdate() { html = html.replace("{MASTODON_FEED}", mastoData.HTML) + var now = new Date() + currentMonth = now.getMonth() + 1 + + if ([11, 12, 1].includes(currentMonth)) { // The Below HTML is copy and pasted from that one site :> + html = html.replace("{SEASONAL_EFFECT}", ` +
+I love the winter :>
+`) + } else { + html = html.replace("{SEASONAL_EFFECT}", "") + } + fs.writeFileSync(path.join(__dirname, 'static/index.html'), html) } diff --git a/resources/mainPage.html b/resources/mainPage.html index bfc92fa..2e5b049 100644 --- a/resources/mainPage.html +++ b/resources/mainPage.html @@ -21,6 +21,7 @@