From 3612518f308e0e5b763d401553bfc96e6b911324 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Tue, 7 May 2024 01:37:15 +0800 Subject: [PATCH] Add "container" paired shortcodes for Markdown files --- _site/feed.xml | 7 +++---- .../guides/kotor-juhani-romance-guide/index.html | 5 ++--- eleventy.config.md.js | 9 +++++++++ .../starwarskotor/guides/kotor-juhani-romance-guide.md | 9 +++++---- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/_site/feed.xml b/_site/feed.xml index a377358a..6e257330 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -4,7 +4,7 @@ Leilukin's personal website. - 2024-05-06T15:43:15Z + 2024-05-06T17:36:23Z https://leilukin.neocities.org Leilukin @@ -2347,9 +2347,8 @@ After discovering the static site generator <a href="https://www.11ty.de <p>https://youtu.be/4itTaqLKQPQ</p> <p><span class="juhani-history">History #3:</span> Available when you gain 1 level after History #2. Juhani reveals that she was from Taris, and she expresses anger over the destruction of Taris. After this conversation, the global value of <code>G_JUHANIH_STATE</code> will be set to 3.</p> <p>https://youtu.be/Foj1nmouoIU</p> -<div class="text-box"> - <p><strong>BUG WARNING:</strong> There is a bug that may block you from progressing Juhani's Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani's final romance conversation. See the "Personal Conversation Path" section below for more details about this bug. This bug is fixed by the <a href="https://deadlystream.com/files/file/1258-kotor-1-community-patch/" target="_blank">KOTOR 1 Community Patch</a>, which is a major reason I highly recommend this mod.</p> - <p>If you are unable to install mods for some reason, I would suggest that once you complete History #3, stop leveling up your character. Once you get your second Star Map (the Dantooine Star Map counts as the first Star Map), complete Personal #3 <em>AND</em> Personal #4 at once. After all that is done, you can now level up to trigger History #4.</p> +<div class="text-box"><p><strong>BUG WARNING:</strong> There is a bug that may block you from progressing Juhani's Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani's final romance conversation. See the &quot;Personal Conversation Path&quot; section below for more details about this bug. This bug is fixed by the <a href="https://deadlystream.com/files/file/1258-kotor-1-community-patch/">KOTOR 1 Community Patch</a>, which is a major reason I highly recommend this mod.</p> +<p>If you are unable to install mods for some reason, I would suggest that once you complete History #3, stop leveling up your character. Once you get your second Star Map (the Dantooine Star Map counts as the first Star Map), complete Personal #3 <em>AND</em> Personal #4 at once. After all that is done, you can now level up to trigger History #4.</p> </div> <p><span class="juhani-history">History #4:</span> Available when you gain 1 level after History #3. Juhani apologizes for her outburst over Taris' destruction, and recalls her life on Taris. After this conversation, the global value of <code>G_JUHANIH_STATE</code> will be set to 4.</p> <p>https://youtu.be/x8Q5bXWXwKU</p> 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 5893b5ae..b9a80767 100644 --- a/_site/shrines/starwarskotor/guides/kotor-juhani-romance-guide/index.html +++ b/_site/shrines/starwarskotor/guides/kotor-juhani-romance-guide/index.html @@ -408,9 +408,8 @@

History #3: Available when you gain 1 level after History #2. Juhani reveals that she was from Taris, and she expresses anger over the destruction of Taris. After this conversation, the global value of G_JUHANIH_STATE will be set to 3.

-
-

BUG WARNING: There is a bug that may block you from progressing Juhani's Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani's final romance conversation. See the "Personal Conversation Path" section below for more details about this bug. This bug is fixed by the KOTOR 1 Community Patch, which is a major reason I highly recommend this mod.

-

If you are unable to install mods for some reason, I would suggest that once you complete History #3, stop leveling up your character. Once you get your second Star Map (the Dantooine Star Map counts as the first Star Map), complete Personal #3 AND Personal #4 at once. After all that is done, you can now level up to trigger History #4.

+

BUG WARNING: There is a bug that may block you from progressing Juhani's Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani's final romance conversation. See the "Personal Conversation Path" section below for more details about this bug. This bug is fixed by the KOTOR 1 Community Patch, which is a major reason I highly recommend this mod.

+

If you are unable to install mods for some reason, I would suggest that once you complete History #3, stop leveling up your character. Once you get your second Star Map (the Dantooine Star Map counts as the first Star Map), complete Personal #3 AND Personal #4 at once. After all that is done, you can now level up to trigger History #4.

History #4: Available when you gain 1 level after History #3. Juhani apologizes for her outburst over Taris' destruction, and recalls her life on Taris. After this conversation, the global value of G_JUHANIH_STATE will be set to 4.

diff --git a/eleventy.config.md.js b/eleventy.config.md.js index faba95d0..eb629008 100644 --- a/eleventy.config.md.js +++ b/eleventy.config.md.js @@ -1,3 +1,5 @@ +/* CONFIGURATION FOR MARKDOWN FILES */ + // Installed Plugins const pluginTOC = require('eleventy-plugin-nesting-toc'); const embedEverything = require("eleventy-plugin-embed-everything"); @@ -72,4 +74,11 @@ module.exports = function (eleventyConfig) { /* This is the part that tells 11ty to swap to our custom config */ eleventyConfig.setLibrary("md", markdownLibrary); + + // Paired shortcode: custom container + eleventyConfig.addPairedShortcode('container', (children, el, className) => { + const classMarkup = className ? ` class="${className}"` : ""; + const content = markdownIt().render(children); + return `<${el}${classMarkup}>${content}`; + }); } diff --git a/src/shrines/starwarskotor/guides/kotor-juhani-romance-guide.md b/src/shrines/starwarskotor/guides/kotor-juhani-romance-guide.md index 96e55be1..d458f525 100644 --- a/src/shrines/starwarskotor/guides/kotor-juhani-romance-guide.md +++ b/src/shrines/starwarskotor/guides/kotor-juhani-romance-guide.md @@ -56,10 +56,11 @@ https://youtu.be/4itTaqLKQPQ https://youtu.be/Foj1nmouoIU -
-

BUG WARNING: There is a bug that may block you from progressing Juhani's Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani's final romance conversation. See the "Personal Conversation Path" section below for more details about this bug. This bug is fixed by the KOTOR 1 Community Patch, which is a major reason I highly recommend this mod.

-

If you are unable to install mods for some reason, I would suggest that once you complete History #3, stop leveling up your character. Once you get your second Star Map (the Dantooine Star Map counts as the first Star Map), complete Personal #3 AND Personal #4 at once. After all that is done, you can now level up to trigger History #4.

-
+{% container "div", "text-box" %} +**BUG WARNING:** There is a bug that may block you from progressing Juhani's Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani's final romance conversation. See the "Personal Conversation Path" section below for more details about this bug. This bug is fixed by the [KOTOR 1 Community Patch](https://deadlystream.com/files/file/1258-kotor-1-community-patch/), which is a major reason I highly recommend this mod. + +If you are unable to install mods for some reason, I would suggest that once you complete History #3, stop leveling up your character. Once you get your second Star Map (the Dantooine Star Map counts as the first Star Map), complete Personal #3 _AND_ Personal #4 at once. After all that is done, you can now level up to trigger History #4. +{% endcontainer %} [History #4:]{.juhani-history} Available when you gain 1 level after History #3. Juhani apologizes for her outburst over Taris' destruction, and recalls her life on Taris. After this conversation, the global value of `G_JUHANIH_STATE` will be set to 4.