Use render instead of renderInline to render spoiler accordion

This commit is contained in:
Helen Chong 2024-05-07 03:51:49 +08:00
parent b516425ee2
commit f6aadf4b8e
3 changed files with 10 additions and 12 deletions

View File

@ -4,7 +4,7 @@
<subtitle>Leilukin&#39;s personal website.</subtitle> <subtitle>Leilukin&#39;s personal website.</subtitle>
<link href="https://leilukin.neocities.org/feed.xml" rel="self"/> <link href="https://leilukin.neocities.org/feed.xml" rel="self"/>
<link href="https://leilukin.neocities.org"/> <link href="https://leilukin.neocities.org"/>
<updated>2024-05-06T19:31:51Z</updated> <updated>2024-05-06T19:51:28Z</updated>
<id>https://leilukin.neocities.org</id> <id>https://leilukin.neocities.org</id>
<author> <author>
<name>Leilukin</name> <name>Leilukin</name>
@ -665,8 +665,7 @@
&lt;p&gt;In addition, &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&#39; story can get genuinely dark at times, most notably in the cosmic horror presented by the Archangels, the eldritch entities that you need to defeat in boss battles to gather clues about a way out of New Wirral and return home. &lt;p&gt;In addition, &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&#39; story can get genuinely dark at times, most notably in the cosmic horror presented by the Archangels, the eldritch entities that you need to defeat in boss battles to gather clues about a way out of New Wirral and return home.
&lt;/p&gt;&lt;details class=&quot;spoiler-accordion&quot;&gt; &lt;/p&gt;&lt;details class=&quot;spoiler-accordion&quot;&gt;
&lt;summary class=&quot;spoiler-accordion__hint&quot;&gt;Major Story Spoilers for &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&lt;/summary&gt; &lt;summary class=&quot;spoiler-accordion__hint&quot;&gt;Major Story Spoilers for &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&lt;/summary&gt;
&lt;div class=&quot;spoiler-accordion__spoiler&quot;&gt; &lt;div class=&quot;spoiler-accordion__spoiler&quot;&gt;&lt;p&gt;Towards the end of the main quest, it is revealed that Archangels are &lt;a href=&quot;https://en.wikipedia.org/wiki/Egregore&quot;&gt;egregores&lt;/a&gt; created from humanity&#39;s desires and ideas. Aleph, the main antagonist and final boss of the main story, is an Archangel that is an incarnation of conquest, and his goal is to leave New Wirral and cause chaos across reality.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
Towards the end of the main quest, it is revealed that Archangels are &lt;a href=&quot;https://en.wikipedia.org/wiki/Egregore&quot;&gt;egregores&lt;/a&gt; created from humanity&#39;s desires and ideas. Aleph, the main antagonist and final boss of the main story, is an Archangel that is an incarnation of conquest, and his goal is to leave New Wirral and cause chaos across reality.&lt;p&gt;&lt;/p&gt;
&lt;p&gt;While &lt;cite&gt;Pokémon&lt;/cite&gt; has its own fair share of sinister villains, the threat the main villain of &lt;cite&gt;Cassette Beasts&lt;/cite&gt; poses is even greater in scope than any &lt;cite&gt;Pokémon&lt;/cite&gt; villain, maybe except for Rainbow Rocket Giovanni from &lt;cite&gt;Ultra Sun&lt;/cite&gt; and &lt;cite&gt;Ultra Moon&lt;/cite&gt;, who shares the goal of ruling the multiverse.&lt;/p&gt; &lt;p&gt;While &lt;cite&gt;Pokémon&lt;/cite&gt; has its own fair share of sinister villains, the threat the main villain of &lt;cite&gt;Cassette Beasts&lt;/cite&gt; poses is even greater in scope than any &lt;cite&gt;Pokémon&lt;/cite&gt; villain, maybe except for Rainbow Rocket Giovanni from &lt;cite&gt;Ultra Sun&lt;/cite&gt; and &lt;cite&gt;Ultra Moon&lt;/cite&gt;, who shares the goal of ruling the multiverse.&lt;/p&gt;
&lt;p&gt;Moreover, even though the player character and their party are able to defeat the main villain in the end, the game makes it clear that since Archangels are not flesh and blood and born from human ideas, as long as humans are interested in conquest Aleph will return at some point. This reflects our world in that defeating a tyrant does not magically solve everything, especially when the system that enables tyrants&#39; rise to power still exists.&lt;/p&gt; &lt;p&gt;Moreover, even though the player character and their party are able to defeat the main villain in the end, the game makes it clear that since Archangels are not flesh and blood and born from human ideas, as long as humans are interested in conquest Aleph will return at some point. This reflects our world in that defeating a tyrant does not magically solve everything, especially when the system that enables tyrants&#39; rise to power still exists.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
@ -713,9 +712,9 @@ Towards the end of the main quest, it is revealed that Archangels are &lt;a href
&lt;p&gt;On the flip side, &lt;cite&gt;Cassette Beasts&lt;/cite&gt; has canon LGBTQ+ characters. For characters who are attracted to the samge gender, the most notable ones are the human companions, who can be romanced by the player character regardless of gender, meaning they are canonically bisexual. Furthermore, the game also has a pair of NPCs who are revealed in-game to be a gay married couple. &lt;p&gt;On the flip side, &lt;cite&gt;Cassette Beasts&lt;/cite&gt; has canon LGBTQ+ characters. For characters who are attracted to the samge gender, the most notable ones are the human companions, who can be romanced by the player character regardless of gender, meaning they are canonically bisexual. Furthermore, the game also has a pair of NPCs who are revealed in-game to be a gay married couple.
&lt;/p&gt;&lt;details class=&quot;spoiler-accordion&quot;&gt; &lt;/p&gt;&lt;details class=&quot;spoiler-accordion&quot;&gt;
&lt;summary class=&quot;spoiler-accordion__hint&quot;&gt;Minor Quest Spoilers for &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&lt;/summary&gt; &lt;summary class=&quot;spoiler-accordion__hint&quot;&gt;Minor Quest Spoilers for &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&lt;/summary&gt;
&lt;div class=&quot;spoiler-accordion__spoiler&quot;&gt; &lt;div class=&quot;spoiler-accordion__spoiler&quot;&gt;&lt;p&gt;To be specific, this pair of NPCs in question are Leader Ianthe and Ranger Wilma, members of the Ranger Guild. After you defeat all 12 Ranger Captains, and you challenge Ianthe to a battle, Ianthe will reveal that she will fight alongside her wife, who is none other than Ranger Wilma, the woman in charge of the Ranger Guild store. Yes, &lt;cite&gt;Cassette Beasts&lt;/cite&gt; has a canon married lesbian couple.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
To be specific, this pair of NPCs in question are Leader Ianthe and Ranger Wilma, members of the Ranger Guild. After you defeat all 12 Ranger Captains, and you challenge Ianthe to a battle, Ianthe will reveal that she will fight alongside her wife, who is none other than Ranger Wilma, the woman in charge of the Ranger Guild store. Yes, &lt;cite&gt;Cassette Beasts&lt;/cite&gt; has a canon married lesbian couple.&lt;/div&gt; &lt;/div&gt;
&lt;/details&gt;&lt;p&gt;&lt;/p&gt; &lt;/details&gt;
&lt;p&gt;As for transgender and non-binary representation, &lt;cite&gt;Pokémon&lt;/cite&gt; has a few ambiguously canon ones, namely &lt;a href=&quot;https://lgbtqgamearchive.com/2016/05/25/beauty-nova-in-pokemon-xy/&quot;&gt;Beauty Nova&lt;/a&gt;, a minor female NPC Trainer from &lt;cite&gt;X&lt;/cite&gt; and &lt;cite&gt;Y&lt;/cite&gt; who is heavily implied to be a trans woman, and &lt;a href=&quot;https://bulbapedia.bulbagarden.net/wiki/Blanche&quot;&gt;Blanche&lt;/a&gt; from &lt;cite&gt;Pokémon GO&lt;/cite&gt;, who is not referred to by gendered pronouns in the English version of the game and official social media accounts. Some other human characters are also commonly interpreted or headcanonned as trans by LGBTQ+ fans, but none of them are officially confirmed to be trans or non-binary.&lt;/p&gt; &lt;p&gt;As for transgender and non-binary representation, &lt;cite&gt;Pokémon&lt;/cite&gt; has a few ambiguously canon ones, namely &lt;a href=&quot;https://lgbtqgamearchive.com/2016/05/25/beauty-nova-in-pokemon-xy/&quot;&gt;Beauty Nova&lt;/a&gt;, a minor female NPC Trainer from &lt;cite&gt;X&lt;/cite&gt; and &lt;cite&gt;Y&lt;/cite&gt; who is heavily implied to be a trans woman, and &lt;a href=&quot;https://bulbapedia.bulbagarden.net/wiki/Blanche&quot;&gt;Blanche&lt;/a&gt; from &lt;cite&gt;Pokémon GO&lt;/cite&gt;, who is not referred to by gendered pronouns in the English version of the game and official social media accounts. Some other human characters are also commonly interpreted or headcanonned as trans by LGBTQ+ fans, but none of them are officially confirmed to be trans or non-binary.&lt;/p&gt;
&lt;p&gt;In &lt;cite&gt;Cassette Beasts&lt;/cite&gt;, not only that the player can chose to go by they/them pronouns via the character creator, but there is also a Ranger Captain named &lt;a href=&quot;https://wiki.cassettebeasts.com/wiki/Skip&quot; target=&quot;blank&quot;&gt;Skip&lt;/a&gt; who is canonically non-binary and uses they/them pronouns.&lt;/p&gt; &lt;p&gt;In &lt;cite&gt;Cassette Beasts&lt;/cite&gt;, not only that the player can chose to go by they/them pronouns via the character creator, but there is also a Ranger Captain named &lt;a href=&quot;https://wiki.cassettebeasts.com/wiki/Skip&quot; target=&quot;blank&quot;&gt;Skip&lt;/a&gt; who is canonically non-binary and uses they/them pronouns.&lt;/p&gt;
&lt;p&gt;In addition to having canon LGBTQ+ characters, &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&#39;s voice cast also includes multiple openly LGBTQ+ voice actors, such as Allegra Clark, J. Michael Tatum, Kayleigh McKee, Liz Morey, Marin M. Miller and Risa Mei. In fact, both Captain Skip and their voice actor Marin M. Miller are non-binary and go by they/them pronouns.&lt;/p&gt; &lt;p&gt;In addition to having canon LGBTQ+ characters, &lt;cite&gt;Cassette Beasts&lt;/cite&gt;&#39;s voice cast also includes multiple openly LGBTQ+ voice actors, such as Allegra Clark, J. Michael Tatum, Kayleigh McKee, Liz Morey, Marin M. Miller and Risa Mei. In fact, both Captain Skip and their voice actor Marin M. Miller are non-binary and go by they/them pronouns.&lt;/p&gt;

View File

@ -490,8 +490,7 @@
<p>In addition, <cite>Cassette Beasts</cite>' story can get genuinely dark at times, most notably in the cosmic horror presented by the Archangels, the eldritch entities that you need to defeat in boss battles to gather clues about a way out of New Wirral and return home. <p>In addition, <cite>Cassette Beasts</cite>' story can get genuinely dark at times, most notably in the cosmic horror presented by the Archangels, the eldritch entities that you need to defeat in boss battles to gather clues about a way out of New Wirral and return home.
<details class="spoiler-accordion"> <details class="spoiler-accordion">
<summary class="spoiler-accordion__hint">Major Story Spoilers for <cite>Cassette Beasts</cite></summary> <summary class="spoiler-accordion__hint">Major Story Spoilers for <cite>Cassette Beasts</cite></summary>
<div class="spoiler-accordion__spoiler"> <div class="spoiler-accordion__spoiler"><p>Towards the end of the main quest, it is revealed that Archangels are <a href="https://en.wikipedia.org/wiki/Egregore">egregores</a> created from humanity's desires and ideas. Aleph, the main antagonist and final boss of the main story, is an Archangel that is an incarnation of conquest, and his goal is to leave New Wirral and cause chaos across reality.</p></p>
Towards the end of the main quest, it is revealed that Archangels are <a href="https://en.wikipedia.org/wiki/Egregore">egregores</a> created from humanity's desires and ideas. Aleph, the main antagonist and final boss of the main story, is an Archangel that is an incarnation of conquest, and his goal is to leave New Wirral and cause chaos across reality.</p>
<p>While <cite>Pokémon</cite> has its own fair share of sinister villains, the threat the main villain of <cite>Cassette Beasts</cite> poses is even greater in scope than any <cite>Pokémon</cite> villain, maybe except for Rainbow Rocket Giovanni from <cite>Ultra Sun</cite> and <cite>Ultra Moon</cite>, who shares the goal of ruling the multiverse.</p> <p>While <cite>Pokémon</cite> has its own fair share of sinister villains, the threat the main villain of <cite>Cassette Beasts</cite> poses is even greater in scope than any <cite>Pokémon</cite> villain, maybe except for Rainbow Rocket Giovanni from <cite>Ultra Sun</cite> and <cite>Ultra Moon</cite>, who shares the goal of ruling the multiverse.</p>
<p>Moreover, even though the player character and their party are able to defeat the main villain in the end, the game makes it clear that since Archangels are not flesh and blood and born from human ideas, as long as humans are interested in conquest Aleph will return at some point. This reflects our world in that defeating a tyrant does not magically solve everything, especially when the system that enables tyrants' rise to power still exists.</p> <p>Moreover, even though the player character and their party are able to defeat the main villain in the end, the game makes it clear that since Archangels are not flesh and blood and born from human ideas, as long as humans are interested in conquest Aleph will return at some point. This reflects our world in that defeating a tyrant does not magically solve everything, especially when the system that enables tyrants' rise to power still exists.</p>
</div> </div>
@ -538,9 +537,9 @@ Towards the end of the main quest, it is revealed that Archangels are <a href="h
<p>On the flip side, <cite>Cassette Beasts</cite> has canon LGBTQ+ characters. For characters who are attracted to the samge gender, the most notable ones are the human companions, who can be romanced by the player character regardless of gender, meaning they are canonically bisexual. Furthermore, the game also has a pair of NPCs who are revealed in-game to be a gay married couple. <p>On the flip side, <cite>Cassette Beasts</cite> has canon LGBTQ+ characters. For characters who are attracted to the samge gender, the most notable ones are the human companions, who can be romanced by the player character regardless of gender, meaning they are canonically bisexual. Furthermore, the game also has a pair of NPCs who are revealed in-game to be a gay married couple.
<details class="spoiler-accordion"> <details class="spoiler-accordion">
<summary class="spoiler-accordion__hint">Minor Quest Spoilers for <cite>Cassette Beasts</cite></summary> <summary class="spoiler-accordion__hint">Minor Quest Spoilers for <cite>Cassette Beasts</cite></summary>
<div class="spoiler-accordion__spoiler"> <div class="spoiler-accordion__spoiler"><p>To be specific, this pair of NPCs in question are Leader Ianthe and Ranger Wilma, members of the Ranger Guild. After you defeat all 12 Ranger Captains, and you challenge Ianthe to a battle, Ianthe will reveal that she will fight alongside her wife, who is none other than Ranger Wilma, the woman in charge of the Ranger Guild store. Yes, <cite>Cassette Beasts</cite> has a canon married lesbian couple.</p></p>
To be specific, this pair of NPCs in question are Leader Ianthe and Ranger Wilma, members of the Ranger Guild. After you defeat all 12 Ranger Captains, and you challenge Ianthe to a battle, Ianthe will reveal that she will fight alongside her wife, who is none other than Ranger Wilma, the woman in charge of the Ranger Guild store. Yes, <cite>Cassette Beasts</cite> has a canon married lesbian couple.</div> </div>
</details></p> </details>
<p>As for transgender and non-binary representation, <cite>Pokémon</cite> has a few ambiguously canon ones, namely <a href="https://lgbtqgamearchive.com/2016/05/25/beauty-nova-in-pokemon-xy/">Beauty Nova</a>, a minor female NPC Trainer from <cite>X</cite> and <cite>Y</cite> who is heavily implied to be a trans woman, and <a href="https://bulbapedia.bulbagarden.net/wiki/Blanche">Blanche</a> from <cite>Pokémon GO</cite>, who is not referred to by gendered pronouns in the English version of the game and official social media accounts. Some other human characters are also commonly interpreted or headcanonned as trans by LGBTQ+ fans, but none of them are officially confirmed to be trans or non-binary.</p> <p>As for transgender and non-binary representation, <cite>Pokémon</cite> has a few ambiguously canon ones, namely <a href="https://lgbtqgamearchive.com/2016/05/25/beauty-nova-in-pokemon-xy/">Beauty Nova</a>, a minor female NPC Trainer from <cite>X</cite> and <cite>Y</cite> who is heavily implied to be a trans woman, and <a href="https://bulbapedia.bulbagarden.net/wiki/Blanche">Blanche</a> from <cite>Pokémon GO</cite>, who is not referred to by gendered pronouns in the English version of the game and official social media accounts. Some other human characters are also commonly interpreted or headcanonned as trans by LGBTQ+ fans, but none of them are officially confirmed to be trans or non-binary.</p>
<p>In <cite>Cassette Beasts</cite>, not only that the player can chose to go by they/them pronouns via the character creator, but there is also a Ranger Captain named <a href="https://wiki.cassettebeasts.com/wiki/Skip" target="blank">Skip</a> who is canonically non-binary and uses they/them pronouns.</p> <p>In <cite>Cassette Beasts</cite>, not only that the player can chose to go by they/them pronouns via the character creator, but there is also a Ranger Captain named <a href="https://wiki.cassettebeasts.com/wiki/Skip" target="blank">Skip</a> who is canonically non-binary and uses they/them pronouns.</p>
<p>In addition to having canon LGBTQ+ characters, <cite>Cassette Beasts</cite>'s voice cast also includes multiple openly LGBTQ+ voice actors, such as Allegra Clark, J. Michael Tatum, Kayleigh McKee, Liz Morey, Marin M. Miller and Risa Mei. In fact, both Captain Skip and their voice actor Marin M. Miller are non-binary and go by they/them pronouns.</p> <p>In addition to having canon LGBTQ+ characters, <cite>Cassette Beasts</cite>'s voice cast also includes multiple openly LGBTQ+ voice actors, such as Allegra Clark, J. Michael Tatum, Kayleigh McKee, Liz Morey, Marin M. Miller and Risa Mei. In fact, both Captain Skip and their voice actor Marin M. Miller are non-binary and go by they/them pronouns.</p>

View File

@ -82,7 +82,7 @@ module.exports = function (eleventyConfig) {
// Paired shorcode: Spoiler accordion // Paired shorcode: Spoiler accordion
eleventyConfig.addPairedShortcode('spoiler', (content, hint) => { eleventyConfig.addPairedShortcode('spoiler', (content, hint) => {
const hintMarkUp = markdownLibrary.renderInline(hint); const hintMarkUp = markdownLibrary.renderInline(hint);
const contentMarkup = markdownLibrary.renderInline(content); const contentMarkup = markdownLibrary.render(content);
return ` return `
<details class="spoiler-accordion"> <details class="spoiler-accordion">
<summary class="spoiler-accordion__hint">${hintMarkUp}</summary> <summary class="spoiler-accordion__hint">${hintMarkUp}</summary>