Add "container" paired shortcodes for Markdown files

This commit is contained in:
Helen Chong 2024-05-07 01:37:15 +08:00
parent fe05db6bdc
commit 3612518f30
4 changed files with 19 additions and 11 deletions

View File

@ -4,7 +4,7 @@
<subtitle>Leilukin&#39;s personal website.</subtitle>
<link href="https://leilukin.neocities.org/feed.xml" rel="self"/>
<link href="https://leilukin.neocities.org"/>
<updated>2024-05-06T15:43:15Z</updated>
<updated>2024-05-06T17:36:23Z</updated>
<id>https://leilukin.neocities.org</id>
<author>
<name>Leilukin</name>
@ -2347,8 +2347,7 @@ After discovering the static site generator &lt;a href=&quot;https://www.11ty.de
&lt;p&gt;https://youtu.be/4itTaqLKQPQ&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;juhani-history&quot;&gt;History #3:&lt;/span&gt; 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 &lt;code&gt;G_JUHANIH_STATE&lt;/code&gt; will be set to 3.&lt;/p&gt;
&lt;p&gt;https://youtu.be/Foj1nmouoIU&lt;/p&gt;
&lt;div class=&quot;text-box&quot;&gt;
&lt;p&gt;&lt;strong&gt;BUG WARNING:&lt;/strong&gt; There is a bug that may block you from progressing Juhani&#39;s Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani&#39;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 &lt;a href=&quot;https://deadlystream.com/files/file/1258-kotor-1-community-patch/&quot; target=&quot;_blank&quot;&gt;KOTOR 1 Community Patch&lt;/a&gt;, which is a major reason I highly recommend this mod.&lt;/p&gt;
&lt;div class=&quot;text-box&quot;&gt;&lt;p&gt;&lt;strong&gt;BUG WARNING:&lt;/strong&gt; There is a bug that may block you from progressing Juhani&#39;s Personal Conversation path after you complete History #3, and thus preventing you from triggering Juhani&#39;s final romance conversation. See the &amp;quot;Personal Conversation Path&amp;quot; section below for more details about this bug. This bug is fixed by the &lt;a href=&quot;https://deadlystream.com/files/file/1258-kotor-1-community-patch/&quot;&gt;KOTOR 1 Community Patch&lt;/a&gt;, which is a major reason I highly recommend this mod.&lt;/p&gt;
&lt;p&gt;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 &lt;em&gt;AND&lt;/em&gt; Personal #4 at once. After all that is done, you can now level up to trigger History #4.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span class=&quot;juhani-history&quot;&gt;History #4:&lt;/span&gt; Available when you gain 1 level after History #3. Juhani apologizes for her outburst over Taris&#39; destruction, and recalls her life on Taris. After this conversation, the global value of &lt;code&gt;G_JUHANIH_STATE&lt;/code&gt; will be set to 4.&lt;/p&gt;

View File

@ -408,8 +408,7 @@
<div id="4itTaqLKQPQ" class="eleventy-plugin-youtube-embed" style="position:relative;width:100%;padding-top: 56.25%;"><iframe style="position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;" width="100%" height="100%" frameborder="0" title="Embedded YouTube video" src="https://www.youtube-nocookie.com/embed/4itTaqLKQPQ" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>
<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>
<div id="Foj1nmouoIU" class="eleventy-plugin-youtube-embed" style="position:relative;width:100%;padding-top: 56.25%;"><iframe style="position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;" width="100%" height="100%" frameborder="0" title="Embedded YouTube video" src="https://www.youtube-nocookie.com/embed/Foj1nmouoIU" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>
<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>
<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>

View File

@ -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}</${el}>`;
});
}

View File

@ -56,10 +56,11 @@ https://youtu.be/4itTaqLKQPQ
https://youtu.be/Foj1nmouoIU
<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>
{% 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.