diff --git a/src/_includes/asummersend/footer.njk b/src/_includes/asummersend/footer.njk index 2cab17e7..b7c2c785 100644 --- a/src/_includes/asummersend/footer.njk +++ b/src/_includes/asummersend/footer.njk @@ -1,6 +1,6 @@ {% extends "global/footer.njk" %} {% block footerContent %} -

Made with ♥ by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 16 February 2023

+

Made with ♥ by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 16 February 2023

{% endblock %} diff --git a/src/_includes/asummersend/hero.njk b/src/_includes/asummersend/hero.njk index 9a7417e7..e8c9af7b 100644 --- a/src/_includes/asummersend/hero.njk +++ b/src/_includes/asummersend/hero.njk @@ -1,46 +1,46 @@ {% extends "global/hero.njk" %} {% block heroImg %} - - - Banner of A Summer’s End — Hong Kong 1986 Shrine - + + + Banner of A Summer’s End — Hong Kong 1986 Shrine + {% endblock %} {% block eventScript %} - const todayEvent = getTodayEvent(); +const todayEvent = getTodayEvent(); - if (todayEvent) { - heroTopBarEl.classList.remove('hidden'); - heroTopBarEl.innerHTML = todayEvent; - } +if (todayEvent) { + heroTopBarEl.classList.remove('hidden'); + heroTopBarEl.innerHTML = todayEvent; +} - function getTodayEvent() { - const date = new Date(); - const month = date.getMonth() + 1; - const day = date.getDate(); - const year = date.getFullYear(); +function getTodayEvent() { + const date = new Date(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const year = date.getFullYear(); - const aseReleaseDate = new Date("2020-04-23").getFullYear(); - const aseAnniversary = year - aseReleaseDate; + const aseReleaseDate = new Date("2020-04-23").getFullYear(); + const aseAnniversary = year - aseReleaseDate; - if (month === 2 && day === 16) - return ` - Today is Michelle Cheung's birthday. Happy Birthday Michelle! - `; - else if (month === 4 && day === 23) - return ` - Today is the ${aseAnniversary}-year anniversary of the release of {% cite "A Summer’s End — Hong Kong 1986" %}! - `; - else if (month === 8 && day === 9) - return ` - Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! - `; - else if (month === 12 && day === 28) - return ` - Today is Sam Wong's birthday. Happy Birthday Sam! - `; - else - return null; - } -{% endblock %} \ No newline at end of file + if (month === 2 && day === 16) + return ` + Today is Michelle Cheung's birthday. Happy Birthday Michelle! + `; + else if (month === 4 && day === 23) + return ` + Today is the ${aseAnniversary}-year anniversary of the release of {% cite "A Summer’s End — Hong Kong 1986" %}! + `; + else if (month === 8 && day === 9) + return ` + Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! + `; + else if (month === 12 && day === 28) + return ` + Today is Sam Wong's birthday. Happy Birthday Sam! + `; + else + return null; +} +{% endblock %} diff --git a/src/_includes/asummersend/shrineinfo.njk b/src/_includes/asummersend/shrineinfo.njk index fd7e8c2e..0bea6ca6 100644 --- a/src/_includes/asummersend/shrineinfo.njk +++ b/src/_includes/asummersend/shrineinfo.njk @@ -1,12 +1,12 @@ {% extends "global/shrineinfo.njk" %} {% block shrineAbout %} -

Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "A Summer’s End — Hong Kong 1986" %}, an indie visual novel developed by Oracle and Bone. Set in 1980s Hong Kong, it tells of a love story between two women.

+

Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "A Summer’s End — Hong Kong 1986" %}, an indie visual novel developed by Oracle and Bone. Set in 1980s Hong Kong, it tells of a love story between two women.

{% endblock %} {% block shrineLinks %} -
  • Official Website -
  • -
  • Steam
  • -
  • itch.io
  • +
  • Official Website +
  • +
  • Steam
  • +
  • itch.io
  • {% endblock %} diff --git a/src/_includes/cassettebeasts/footer.njk b/src/_includes/cassettebeasts/footer.njk index b0ccda7b..2bfc9183 100644 --- a/src/_includes/cassettebeasts/footer.njk +++ b/src/_includes/cassettebeasts/footer.njk @@ -1,6 +1,6 @@ {% extends "global/footer.njk" %} {% block footerContent %} -

    Made with ♥ by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 3 August 2023

    +

    Made with ♥ by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 3 August 2023

    {% endblock %} diff --git a/src/_includes/cassettebeasts/hero.njk b/src/_includes/cassettebeasts/hero.njk index 3a523712..9068ea7e 100644 --- a/src/_includes/cassettebeasts/hero.njk +++ b/src/_includes/cassettebeasts/hero.njk @@ -1,40 +1,40 @@ {% extends "global/hero.njk" %} {% block heroImg %} - - - Banner of Cassette Beasts Shrine - + + + Banner of Cassette Beasts Shrine + {% endblock %} {% block eventScript %} - const todayEvent = getTodayEvent(); +const todayEvent = getTodayEvent(); - if (todayEvent) { - heroTopBarEl.classList.remove('hidden'); - heroTopBarEl.innerHTML = todayEvent; - } +if (todayEvent) { + heroTopBarEl.classList.remove('hidden'); + heroTopBarEl.innerHTML = todayEvent; +} - function getTodayEvent() { - const date = new Date(); - const month = date.getMonth() + 1; - const day = date.getDate(); - const year = date.getFullYear(); +function getTodayEvent() { + const date = new Date(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const year = date.getFullYear(); - const cbReleaseDate = new Date("2023-04-26").getFullYear(); - const pierReleaseDate = new Date("2023-10-04").getFullYear(); - const cbAnniversary = year - cbReleaseDate; - const pierAnniversary = year - pierReleaseDate; + const cbReleaseDate = new Date("2023-04-26").getFullYear(); + const pierReleaseDate = new Date("2023-10-04").getFullYear(); + const cbAnniversary = year - cbReleaseDate; + const pierAnniversary = year - pierReleaseDate; - if (month === 4 && day === 26) - return ` - Today is the ${cbAnniversary}-year anniversary of the release of {% cite "Cassette Beasts" %}! - `; - else if (month === 10 && day === 4) - return ` - Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of {% cite "Cassette Beasts" %}! - `; - else - return null; - } -{% endblock %} \ No newline at end of file + if (month === 4 && day === 26) + return ` + Today is the ${cbAnniversary}-year anniversary of the release of {% cite "Cassette Beasts" %}! + `; + else if (month === 10 && day === 4) + return ` + Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of {% cite "Cassette Beasts" %}! + `; + else + return null; +} +{% endblock %} diff --git a/src/_includes/cassettebeasts/shrineinfo.njk b/src/_includes/cassettebeasts/shrineinfo.njk index 0f2380f9..1c755f8b 100644 --- a/src/_includes/cassettebeasts/shrineinfo.njk +++ b/src/_includes/cassettebeasts/shrineinfo.njk @@ -1,14 +1,14 @@ {% extends "global/shrineinfo.njk" %} {% block shrineAbout %} -

    Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "Cassette Beasts" %}, an indie monster collecting turn-based open-world role-playing video game developed by Bytten Studio and published by Raw Fury.

    +

    Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "Cassette Beasts" %}, an indie monster collecting turn-based open-world role-playing video game developed by Bytten Studio and published by Raw Fury.

    {% endblock %} {% block shrineLinks %} -
  • Official Website -
  • -
  • Official Wiki
  • -
  • Steam
  • -
  • Bytten Studio
  • -
  • Cassette Beasts fanlisting
  • +
  • Official Website +
  • +
  • Official Wiki
  • +
  • Steam
  • +
  • Bytten Studio
  • +
  • Cassette Beasts fanlisting
  • {% endblock %} diff --git a/src/_includes/global/hero.njk b/src/_includes/global/hero.njk index dcf8bec7..7971887e 100644 --- a/src/_includes/global/hero.njk +++ b/src/_includes/global/hero.njk @@ -2,7 +2,7 @@
    {% block heroImg %} - {{ heroImg }} + {{ heroImg }} {% endblock %}
    diff --git a/src/_includes/global/shrineinfo.njk b/src/_includes/global/shrineinfo.njk index 4605be2c..c6fc0c93 100644 --- a/src/_includes/global/shrineinfo.njk +++ b/src/_includes/global/shrineinfo.njk @@ -2,12 +2,12 @@ diff --git a/src/_includes/main/footer.njk b/src/_includes/main/footer.njk index c2d28ee8..735b4118 100644 --- a/src/_includes/main/footer.njk +++ b/src/_includes/main/footer.njk @@ -1,29 +1,29 @@ {% extends "global/footer.njk" %} {% block footerContent %} -

    Footer Navigation:

    - {% set currentUrl %}{{ page.url }}{% endset %} - -

    Made with ♥ by {{ sitemeta.siteAuthor.name }} since 11 September 2022

    +

    Footer Navigation:

    +{% set currentUrl %}{{ page.url }}{% endset %} + +

    Made with ♥ by {{ sitemeta.siteAuthor.name }} since 11 September 2022

    {% endblock %} diff --git a/src/_includes/main/hero.njk b/src/_includes/main/hero.njk index 6e79d65e..b1161e05 100644 --- a/src/_includes/main/hero.njk +++ b/src/_includes/main/hero.njk @@ -1,7 +1,7 @@ {% extends "global/hero.njk" %} {% block heroImg %} - Banner of Leilukin's Hub +Banner of Leilukin's Hub {% endblock %} {% set heroDropShadow %} diff --git a/src/_includes/main/statuscafe.njk b/src/_includes/main/statuscafe.njk index 632adb82..94f15aef 100644 --- a/src/_includes/main/statuscafe.njk +++ b/src/_includes/main/statuscafe.njk @@ -13,27 +13,27 @@ {%- css %}#statuscafe-content { margin-bottom: 0.5em; }{% endcss %} {%- js %} - const statusCafeContent = document.getElementById("statuscafe-content"); - statusCafeContent.innerHTML = ` -

    Fetching data from status.cafe...

    - `; +const statusCafeContent = document.getElementById("statuscafe-content"); +statusCafeContent.innerHTML = ` +

    Fetching data from status.cafe...

    +`; - const fetchStatusCafe = async () => { - try { - const res = await fetch('https://status.cafe/users/leilukin/status.json'); - const data = await res.json(); +const fetchStatusCafe = async () => { + try { + const res = await fetch('https://status.cafe/users/leilukin/status.json'); + const data = await res.json(); - if (!data.content.length) { - document.getElementById("statuscafe-content").innerHTML = "No status yet." - return; - } - - document.getElementById("statuscafe-userinfo").innerHTML = data.face + ' ' + data.timeAgo; - statusCafeContent.innerHTML = data.content; - } catch (error) { - console.error(error); - document.getElementById("statuscafe-content").textContent = `[ERROR] ${error}`; + if (!data.content.length) { + document.getElementById("statuscafe-content").innerHTML = "No status yet." + return; } - }; - fetchStatusCafe(); -{% endjs %} \ No newline at end of file + + document.getElementById("statuscafe-userinfo").innerHTML = data.face + ' ' + data.timeAgo; + statusCafeContent.innerHTML = data.content; + } catch (error) { + console.error(error); + document.getElementById("statuscafe-content").textContent = `[ERROR] ${error}`; + } +}; +fetchStatusCafe(); +{% endjs %} diff --git a/src/_includes/pokemonoras/footer.njk b/src/_includes/pokemonoras/footer.njk index 9b4910f6..9254a355 100644 --- a/src/_includes/pokemonoras/footer.njk +++ b/src/_includes/pokemonoras/footer.njk @@ -1,6 +1,6 @@ {% extends "global/footer.njk" %} {% block footerContent %} -

    Made with ♥ by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 21 November 2024

    +

    Made with ♥ by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 21 November 2024

    {% endblock %} diff --git a/src/_includes/pokemonoras/hero.njk b/src/_includes/pokemonoras/hero.njk index d55c42db..82e06ca8 100644 --- a/src/_includes/pokemonoras/hero.njk +++ b/src/_includes/pokemonoras/hero.njk @@ -1,34 +1,34 @@ {% extends "global/hero.njk" %} {% block heroImg %} - - - Banner of Pokémon Omega Ruby and Alpha Sapphire Shrine - + + + Banner of Pokémon Omega Ruby and Alpha Sapphire Shrine + {% endblock %} {% block eventScript %} - const todayEvent = getTodayEvent(); +const todayEvent = getTodayEvent(); - if (todayEvent) { - heroTopBarEl.classList.remove('hidden'); - heroTopBarEl.innerHTML = todayEvent; - } +if (todayEvent) { + heroTopBarEl.classList.remove('hidden'); + heroTopBarEl.innerHTML = todayEvent; +} - function getTodayEvent() { - const date = new Date(); - const month = date.getMonth() + 1; - const day = date.getDate(); - const year = date.getFullYear(); +function getTodayEvent() { + const date = new Date(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const year = date.getFullYear(); - const orasReleaseDate = new Date("2014-11-21").getFullYear(); - const orasAnniversary = year - orasReleaseDate; + const orasReleaseDate = new Date("2014-11-21").getFullYear(); + const orasAnniversary = year - orasReleaseDate; - if (month === 11 && day === 21) - return ` - Today is the ${orasAnniversary}-year anniversary of the release of Pokémon Omega Ruby" and Alpha Sapphire! - `; - else - return null; - } -{% endblock %} \ No newline at end of file + if (month === 11 && day === 21) + return ` + Today is the ${orasAnniversary}-year anniversary of the release of Pokémon Omega Ruby" and Alpha Sapphire! + `; + else + return null; +} +{% endblock %} diff --git a/src/_includes/pokemonoras/shrineinfo.njk b/src/_includes/pokemonoras/shrineinfo.njk index 08242077..4ae40c0a 100644 --- a/src/_includes/pokemonoras/shrineinfo.njk +++ b/src/_includes/pokemonoras/shrineinfo.njk @@ -1,10 +1,10 @@ {% extends "global/shrineinfo.njk" %} {% block shrineAbout %} -

    Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "Pokémon Omega Ruby and Alpha Sapphire" %}, remakes of the 2002 Game Boy Advance role-playing video games {% cite "Pokémon Ruby" %} and {% cite "Pokémon Sapphire" %}. The games are part of the sixth generation of the {% cite "Pokémon" %} main series of video games, developed by Game Freak and published by The Pokémon Company and Nintendo for the Nintendo 3DS.

    +

    Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "Pokémon Omega Ruby and Alpha Sapphire" %}, remakes of the 2002 Game Boy Advance role-playing video games {% cite "Pokémon Ruby" %} and {% cite "Pokémon Sapphire" %}. The games are part of the sixth generation of the {% cite "Pokémon" %} main series of video games, developed by Game Freak and published by The Pokémon Company and Nintendo for the Nintendo 3DS.

    {% endblock %} {% block shrineLinks %} -
  • Bulbapedia
  • -
  • Pokémon Ruby, Sapphire, Omega Ruby and Alpha Sapphire fanlisting
  • +
  • Bulbapedia
  • +
  • Pokémon Ruby, Sapphire, Omega Ruby and Alpha Sapphire fanlisting
  • {% endblock %} diff --git a/src/_includes/starwarskotor/footer.njk b/src/_includes/starwarskotor/footer.njk index 2f16efa1..6cf5e10b 100644 --- a/src/_includes/starwarskotor/footer.njk +++ b/src/_includes/starwarskotor/footer.njk @@ -1,6 +1,6 @@ {% extends "global/footer.njk" %} {% block footerContent %} -

    Made with ♥ and the Force by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 17 February 2023

    +

    Made with ♥ and the Force by {{ sitemeta.siteAuthor.name }} • Shrine Launched: 17 February 2023

    {% endblock %} diff --git a/src/_includes/starwarskotor/hero.njk b/src/_includes/starwarskotor/hero.njk index 50666614..4f0f50f6 100644 --- a/src/_includes/starwarskotor/hero.njk +++ b/src/_includes/starwarskotor/hero.njk @@ -1,40 +1,40 @@ {% extends "global/hero.njk" %} {% block heroImg %} - - - anner of Star Wars: Knights of the Old Republic Shrine - + + + anner of Star Wars: Knights of the Old Republic Shrine + {% endblock %} {% block eventScript %} - const todayEvent = getTodayEvent(); +const todayEvent = getTodayEvent(); - if (todayEvent) { - heroTopBarEl.classList.remove('hidden'); - heroTopBarEl.innerHTML = todayEvent; - } +if (todayEvent) { + heroTopBarEl.classList.remove('hidden'); + heroTopBarEl.innerHTML = todayEvent; +} - function getTodayEvent() { - const date = new Date(); - const month = date.getMonth() + 1; - const day = date.getDate(); - const year = date.getFullYear(); +function getTodayEvent() { + const date = new Date(); + const month = date.getMonth() + 1; + const day = date.getDate(); + const year = date.getFullYear(); - const kotor1ReleaseDate = new Date("2003-07-15").getFullYear(); - const kotor2ReleaseDate = new Date("2004-12-06").getFullYear(); - const kotor1Anniversary = year - kotor1ReleaseDate; - const kotor2Anniversary = year - kotor2ReleaseDate; + const kotor1ReleaseDate = new Date("2003-07-15").getFullYear(); + const kotor2ReleaseDate = new Date("2004-12-06").getFullYear(); + const kotor1Anniversary = year - kotor1ReleaseDate; + const kotor2Anniversary = year - kotor2ReleaseDate; - if (month === 7 && day === 15) - return ` - Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic - `; - else if (month === 12 && day === 6) - return ` - Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords - `; - else - return null; - } -{% endblock %} \ No newline at end of file + if (month === 7 && day === 15) + return ` + Today is the ${kotor1Anniversary}-year anniversary of the release of Star Wars: Knihgts of the Old Republic + `; + else if (month === 12 && day === 6) + return ` + Today is the ${kotor2Anniversary}-year anniversary of the release of Star Wars: Knights of the Old Republic II — The Sith Lords + `; + else + return null; +} +{% endblock %} diff --git a/src/_includes/starwarskotor/shrineinfo.njk b/src/_includes/starwarskotor/shrineinfo.njk index 5673ad43..5edeadc5 100644 --- a/src/_includes/starwarskotor/shrineinfo.njk +++ b/src/_includes/starwarskotor/shrineinfo.njk @@ -1,11 +1,11 @@ {% extends "global/shrineinfo.njk" %} {% block shrineAbout %} -

    Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "Star Wars: Knights of the Old Republic" %}, a series of role-playing video games set in the {% cite "Star Wars" %} universe, taking place almost 4,000 years before the events of the Skywalker film saga.

    +

    Welcome to {{ sitemeta.siteAuthor.name }}'s shrine for {% cite "Star Wars: Knights of the Old Republic" %}, a series of role-playing video games set in the {% cite "Star Wars" %} universe, taking place almost 4,000 years before the events of the Skywalker film saga.

    {% endblock %} {% block shrineLinks %} -
  • KOTOR Community Portal
  • -
  • Star Wars: KotOR fanlisting
  • -
  • Star Wars: KotOR II fanlisting
  • +
  • KOTOR Community Portal
  • +
  • Star Wars: KotOR fanlisting
  • +
  • Star Wars: KotOR II fanlisting
  • {% endblock %}