diff --git a/_site/assets/css/cassettebeasts.css b/_site/assets/css/cassettebeasts.css index dc27851e..bce1064b 100644 --- a/_site/assets/css/cassettebeasts.css +++ b/_site/assets/css/cassettebeasts.css @@ -30,6 +30,10 @@ --clr-main-footer-bg: #9b59b6; } +.hero__top-bar { + color: var(--clr-navbar-link); +} + .footer { color: var(--clr-navbar-link); } diff --git a/_site/feed.xml b/_site/feed.xml index 209da7f3..18386d7b 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -4,7 +4,7 @@ Leilukin's personal website. - 2024-04-23T07:56:04Z + 2024-04-23T08:12:34Z https://leilukin.neocities.org Leilukin diff --git a/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html b/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html index 60331bc1..6f99b7ab 100644 --- a/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html +++ b/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html @@ -114,22 +114,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/_site/shrines/cassettebeasts/articles/index.html b/_site/shrines/cassettebeasts/articles/index.html index ec5c1682..9a241482 100644 --- a/_site/shrines/cassettebeasts/articles/index.html +++ b/_site/shrines/cassettebeasts/articles/index.html @@ -114,22 +114,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/_site/shrines/cassettebeasts/featured/index.html b/_site/shrines/cassettebeasts/featured/index.html index 32821b1d..f966406a 100644 --- a/_site/shrines/cassettebeasts/featured/index.html +++ b/_site/shrines/cassettebeasts/featured/index.html @@ -114,22 +114,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/_site/shrines/cassettebeasts/gamelog/index.html b/_site/shrines/cassettebeasts/gamelog/index.html index 536c51f9..9e41d900 100644 --- a/_site/shrines/cassettebeasts/gamelog/index.html +++ b/_site/shrines/cassettebeasts/gamelog/index.html @@ -114,22 +114,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/_site/shrines/cassettebeasts/index.html b/_site/shrines/cassettebeasts/index.html index f5c49f7d..8c8b3940 100644 --- a/_site/shrines/cassettebeasts/index.html +++ b/_site/shrines/cassettebeasts/index.html @@ -114,22 +114,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/_site/shrines/cassettebeasts/resources/index.html b/_site/shrines/cassettebeasts/resources/index.html index add6837f..c7606292 100644 --- a/_site/shrines/cassettebeasts/resources/index.html +++ b/_site/shrines/cassettebeasts/resources/index.html @@ -114,22 +114,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/_site/shrines/cassettebeasts/trivia/index.html b/_site/shrines/cassettebeasts/trivia/index.html index ebf29abd..9ecc350f 100644 --- a/_site/shrines/cassettebeasts/trivia/index.html +++ b/_site/shrines/cassettebeasts/trivia/index.html @@ -114,22 +114,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/src/_includes/cassettebeasts/hero.njk b/src/_includes/cassettebeasts/hero.njk index 103c6a94..b739de59 100644 --- a/src/_includes/cassettebeasts/hero.njk +++ b/src/_includes/cassettebeasts/hero.njk @@ -20,22 +20,28 @@ if (month == 4 && day == 26) return "CB Anniversary"; - else if (month == 9 && day == 12) + else if (month == 10 && day == 4) return "Pier Anniversary"; else return "No event"; } function getBlurbHtml(day) { + const currentYear = new Date().getFullYear(); + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = currentYear - cbReleaseDate; + const pierAnniversary = currentYear - pierReleaseDate; + switch (day) { case "CB Anniversary": return ` - Today is the anniversary of the release of Cassette Beasts! + Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts! `; break; case "Pier Anniversary": return ` - Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts! `; break; default: diff --git a/src/assets/css/cassettebeasts.css b/src/assets/css/cassettebeasts.css index dc27851e..bce1064b 100644 --- a/src/assets/css/cassettebeasts.css +++ b/src/assets/css/cassettebeasts.css @@ -30,6 +30,10 @@ --clr-main-footer-bg: #9b59b6; } +.hero__top-bar { + color: var(--clr-navbar-link); +} + .footer { color: var(--clr-navbar-link); }