From 2eb7b3311252127b89b65c5fb1f0f6983bdecec8 Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Tue, 23 Apr 2024 16:42:37 +0800
Subject: [PATCH] Display anniversary year count of KotOR releases on the top
bar
---
_site/feed.xml | 2 +-
.../articles/arren-kae-kreia-theory/index.html | 12 +++++++++---
.../articles/faq-same-gender-romance-mods/index.html | 12 +++++++++---
.../articles/handmaiden-sisters-mother/index.html | 12 +++++++++---
_site/shrines/starwarskotor/articles/index.html | 12 +++++++++---
.../juhani-hostility-towards-canderous/index.html | 12 +++++++++---
.../articles/juhani-lesbian-evidence/index.html | 12 +++++++++---
.../articles/keep-juhani-a-lesbian/index.html | 12 +++++++++---
.../partyswap-management-takeover/index.html | 12 +++++++++---
.../tslrcm-first-kotor2-playthrough/index.html | 12 +++++++++---
_site/shrines/starwarskotor/guides/index.html | 12 +++++++++---
.../guides/kotor-juhani-romance-guide/index.html | 12 +++++++++---
.../guides/kotor-redeeming-bastila-guide/index.html | 12 +++++++++---
.../kotor-sandral-matale-feud-guide/index.html | 12 +++++++++---
_site/shrines/starwarskotor/index.html | 12 +++++++++---
_site/shrines/starwarskotor/resources/index.html | 12 +++++++++---
.../kotor-same-gender-romance-mods/index.html | 12 +++++++++---
.../index.html | 12 +++++++++---
.../resources/tslrcm-m478ep-modules-music/index.html | 12 +++++++++---
_site/shrines/starwarskotor/universes/index.html | 12 +++++++++---
src/_includes/starwarskotor/hero.njk | 12 +++++++++---
21 files changed, 181 insertions(+), 61 deletions(-)
diff --git a/_site/feed.xml b/_site/feed.xml
index d29b529d..d6adcba6 100644
--- a/_site/feed.xml
+++ b/_site/feed.xml
@@ -4,7 +4,7 @@
Leilukin's personal website.
- 2024-04-23T08:13:45Z
+ 2024-04-23T08:42:08Zhttps://leilukin.neocities.orgLeilukin
diff --git a/_site/shrines/starwarskotor/articles/arren-kae-kreia-theory/index.html b/_site/shrines/starwarskotor/articles/arren-kae-kreia-theory/index.html
index acfb8b75..a6e09139 100644
--- a/_site/shrines/starwarskotor/articles/arren-kae-kreia-theory/index.html
+++ b/_site/shrines/starwarskotor/articles/arren-kae-kreia-theory/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/faq-same-gender-romance-mods/index.html b/_site/shrines/starwarskotor/articles/faq-same-gender-romance-mods/index.html
index 07fddaac..2f6d7d0d 100644
--- a/_site/shrines/starwarskotor/articles/faq-same-gender-romance-mods/index.html
+++ b/_site/shrines/starwarskotor/articles/faq-same-gender-romance-mods/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/handmaiden-sisters-mother/index.html b/_site/shrines/starwarskotor/articles/handmaiden-sisters-mother/index.html
index 8f935532..d05f184e 100644
--- a/_site/shrines/starwarskotor/articles/handmaiden-sisters-mother/index.html
+++ b/_site/shrines/starwarskotor/articles/handmaiden-sisters-mother/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/index.html b/_site/shrines/starwarskotor/articles/index.html
index 2b7502e7..127359d5 100644
--- a/_site/shrines/starwarskotor/articles/index.html
+++ b/_site/shrines/starwarskotor/articles/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/juhani-hostility-towards-canderous/index.html b/_site/shrines/starwarskotor/articles/juhani-hostility-towards-canderous/index.html
index 55d788fa..91a84fc1 100644
--- a/_site/shrines/starwarskotor/articles/juhani-hostility-towards-canderous/index.html
+++ b/_site/shrines/starwarskotor/articles/juhani-hostility-towards-canderous/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/juhani-lesbian-evidence/index.html b/_site/shrines/starwarskotor/articles/juhani-lesbian-evidence/index.html
index 6975a642..4bd9c456 100644
--- a/_site/shrines/starwarskotor/articles/juhani-lesbian-evidence/index.html
+++ b/_site/shrines/starwarskotor/articles/juhani-lesbian-evidence/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/keep-juhani-a-lesbian/index.html b/_site/shrines/starwarskotor/articles/keep-juhani-a-lesbian/index.html
index d016e4ba..21e0a18c 100644
--- a/_site/shrines/starwarskotor/articles/keep-juhani-a-lesbian/index.html
+++ b/_site/shrines/starwarskotor/articles/keep-juhani-a-lesbian/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/partyswap-management-takeover/index.html b/_site/shrines/starwarskotor/articles/partyswap-management-takeover/index.html
index bf6a9966..9a96d8b6 100644
--- a/_site/shrines/starwarskotor/articles/partyswap-management-takeover/index.html
+++ b/_site/shrines/starwarskotor/articles/partyswap-management-takeover/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/articles/tslrcm-first-kotor2-playthrough/index.html b/_site/shrines/starwarskotor/articles/tslrcm-first-kotor2-playthrough/index.html
index 80fb257c..faf0be19 100644
--- a/_site/shrines/starwarskotor/articles/tslrcm-first-kotor2-playthrough/index.html
+++ b/_site/shrines/starwarskotor/articles/tslrcm-first-kotor2-playthrough/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/guides/index.html b/_site/shrines/starwarskotor/guides/index.html
index c7edb13b..97557962 100644
--- a/_site/shrines/starwarskotor/guides/index.html
+++ b/_site/shrines/starwarskotor/guides/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/guides/kotor-juhani-romance-guide/index.html b/_site/shrines/starwarskotor/guides/kotor-juhani-romance-guide/index.html
index 573c1083..bbae57ca 100644
--- a/_site/shrines/starwarskotor/guides/kotor-juhani-romance-guide/index.html
+++ b/_site/shrines/starwarskotor/guides/kotor-juhani-romance-guide/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/guides/kotor-redeeming-bastila-guide/index.html b/_site/shrines/starwarskotor/guides/kotor-redeeming-bastila-guide/index.html
index 28cff0ac..390f1259 100644
--- a/_site/shrines/starwarskotor/guides/kotor-redeeming-bastila-guide/index.html
+++ b/_site/shrines/starwarskotor/guides/kotor-redeeming-bastila-guide/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/guides/kotor-sandral-matale-feud-guide/index.html b/_site/shrines/starwarskotor/guides/kotor-sandral-matale-feud-guide/index.html
index 48fb3784..a30ffeba 100644
--- a/_site/shrines/starwarskotor/guides/kotor-sandral-matale-feud-guide/index.html
+++ b/_site/shrines/starwarskotor/guides/kotor-sandral-matale-feud-guide/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/index.html b/_site/shrines/starwarskotor/index.html
index 0653d4bd..99c61772 100644
--- a/_site/shrines/starwarskotor/index.html
+++ b/_site/shrines/starwarskotor/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/resources/index.html b/_site/shrines/starwarskotor/resources/index.html
index a07eee95..4ff1f758 100644
--- a/_site/shrines/starwarskotor/resources/index.html
+++ b/_site/shrines/starwarskotor/resources/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/resources/kotor-same-gender-romance-mods/index.html b/_site/shrines/starwarskotor/resources/kotor-same-gender-romance-mods/index.html
index b9ed7707..10bab813 100644
--- a/_site/shrines/starwarskotor/resources/kotor-same-gender-romance-mods/index.html
+++ b/_site/shrines/starwarskotor/resources/kotor-same-gender-romance-mods/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/resources/kotor2-female-exile-recruit-handmaiden-mods/index.html b/_site/shrines/starwarskotor/resources/kotor2-female-exile-recruit-handmaiden-mods/index.html
index 786aecfa..df167d74 100644
--- a/_site/shrines/starwarskotor/resources/kotor2-female-exile-recruit-handmaiden-mods/index.html
+++ b/_site/shrines/starwarskotor/resources/kotor2-female-exile-recruit-handmaiden-mods/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/resources/tslrcm-m478ep-modules-music/index.html b/_site/shrines/starwarskotor/resources/tslrcm-m478ep-modules-music/index.html
index ea2b9871..4470ac6b 100644
--- a/_site/shrines/starwarskotor/resources/tslrcm-m478ep-modules-music/index.html
+++ b/_site/shrines/starwarskotor/resources/tslrcm-m478ep-modules-music/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/_site/shrines/starwarskotor/universes/index.html b/_site/shrines/starwarskotor/universes/index.html
index a22d262a..092b61a7 100644
--- a/_site/shrines/starwarskotor/universes/index.html
+++ b/_site/shrines/starwarskotor/universes/index.html
@@ -112,7 +112,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -121,15 +121,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default:
diff --git a/src/_includes/starwarskotor/hero.njk b/src/_includes/starwarskotor/hero.njk
index 80ac4b3d..cf3554d2 100644
--- a/src/_includes/starwarskotor/hero.njk
+++ b/src/_includes/starwarskotor/hero.njk
@@ -18,7 +18,7 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 7 && day == 16)
+ if (month == 7 && day == 15)
return "KotOR 1 Anniversary";
else if (month == 12 && day == 6)
return "KotOR 2 Anniversary";
@@ -27,15 +27,21 @@
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
+ const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
+ const kotor1Anniversary = currentYear - kotor1ReleaseDate;
+ const kotor2Anniversary = currentYear - kotor2ReleaseDate;
+
switch (day) {
case "KotOR 1 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knihgts of the Old Republic
+ Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic
`;
break;
case "KotOR 2 Anniversary":
return `
- Today is the anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
+ Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords
`;
break;
default: