From c83da017ff6cb051985971e4dcbffe6fc247c907 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:41:17 +0800 Subject: [PATCH] Use strict qual operator for event dates --- _site/feed.xml | 2 +- _site/shrines/asummersend/gallery/index.html | 8 ++++---- _site/shrines/asummersend/index.html | 8 ++++---- _site/shrines/asummersend/playlists/index.html | 8 ++++---- _site/shrines/asummersend/trivia/index.html | 8 ++++---- src/_includes/asummersend/hero.njk | 8 ++++---- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/_site/feed.xml b/_site/feed.xml index 616d0548..821538a1 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -4,7 +4,7 @@ Leilukin's personal website. - 2024-04-29T03:40:18Z + 2024-04-29T03:40:57Z https://leilukin.neocities.org Leilukin diff --git a/_site/shrines/asummersend/gallery/index.html b/_site/shrines/asummersend/gallery/index.html index 6a7c6dec..2e1fe56c 100644 --- a/_site/shrines/asummersend/gallery/index.html +++ b/_site/shrines/asummersend/gallery/index.html @@ -117,19 +117,19 @@ const currentYear = new Date().getFullYear(); const anniversary = currentYear - releaseDate; - if (month == 2 && day == 16) + if (month === 2 && day === 16) return ` Today is Michelle Cheung's birthday. Happy Birthday Michelle! `; - else if (month == 4 && day == 23) + else if (month === 4 && day === 23) return ` Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986! `; - else if (month == 8 && day == 9) + else if (month === 8 && day === 9) return ` Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! `; - else if (month == 12 && day == 28) + else if (month === 12 && day === 28) return ` Today is Sam Wong's birthday. Happy Birthday Sam! `; diff --git a/_site/shrines/asummersend/index.html b/_site/shrines/asummersend/index.html index 16359e44..03680af9 100644 --- a/_site/shrines/asummersend/index.html +++ b/_site/shrines/asummersend/index.html @@ -117,19 +117,19 @@ const currentYear = new Date().getFullYear(); const anniversary = currentYear - releaseDate; - if (month == 2 && day == 16) + if (month === 2 && day === 16) return ` Today is Michelle Cheung's birthday. Happy Birthday Michelle! `; - else if (month == 4 && day == 23) + else if (month === 4 && day === 23) return ` Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986! `; - else if (month == 8 && day == 9) + else if (month === 8 && day === 9) return ` Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! `; - else if (month == 12 && day == 28) + else if (month === 12 && day === 28) return ` Today is Sam Wong's birthday. Happy Birthday Sam! `; diff --git a/_site/shrines/asummersend/playlists/index.html b/_site/shrines/asummersend/playlists/index.html index 46824dc2..0023b4e7 100644 --- a/_site/shrines/asummersend/playlists/index.html +++ b/_site/shrines/asummersend/playlists/index.html @@ -117,19 +117,19 @@ const currentYear = new Date().getFullYear(); const anniversary = currentYear - releaseDate; - if (month == 2 && day == 16) + if (month === 2 && day === 16) return ` Today is Michelle Cheung's birthday. Happy Birthday Michelle! `; - else if (month == 4 && day == 23) + else if (month === 4 && day === 23) return ` Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986! `; - else if (month == 8 && day == 9) + else if (month === 8 && day === 9) return ` Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! `; - else if (month == 12 && day == 28) + else if (month === 12 && day === 28) return ` Today is Sam Wong's birthday. Happy Birthday Sam! `; diff --git a/_site/shrines/asummersend/trivia/index.html b/_site/shrines/asummersend/trivia/index.html index ec87e1f3..9c065f13 100644 --- a/_site/shrines/asummersend/trivia/index.html +++ b/_site/shrines/asummersend/trivia/index.html @@ -117,19 +117,19 @@ const currentYear = new Date().getFullYear(); const anniversary = currentYear - releaseDate; - if (month == 2 && day == 16) + if (month === 2 && day === 16) return ` Today is Michelle Cheung's birthday. Happy Birthday Michelle! `; - else if (month == 4 && day == 23) + else if (month === 4 && day === 23) return ` Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986! `; - else if (month == 8 && day == 9) + else if (month === 8 && day === 9) return ` Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! `; - else if (month == 12 && day == 28) + else if (month === 12 && day === 28) return ` Today is Sam Wong's birthday. Happy Birthday Sam! `; diff --git a/src/_includes/asummersend/hero.njk b/src/_includes/asummersend/hero.njk index 97d95f6c..6023c96f 100644 --- a/src/_includes/asummersend/hero.njk +++ b/src/_includes/asummersend/hero.njk @@ -24,19 +24,19 @@ const currentYear = new Date().getFullYear(); const anniversary = currentYear - releaseDate; - if (month == 2 && day == 16) + if (month === 2 && day === 16) return ` Today is Michelle Cheung's birthday. Happy Birthday Michelle! `; - else if (month == 4 && day == 23) + else if (month === 4 && day === 23) return ` Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986! `; - else if (month == 8 && day == 9) + else if (month === 8 && day === 9) return ` Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! `; - else if (month == 12 && day == 28) + else if (month === 12 && day === 28) return ` Today is Sam Wong's birthday. Happy Birthday Sam! `;