diff options
| author | Roglozor <me@roglozor.xyz> | 2026-11-27 04:56:53 +0000 |
|---|---|---|
| committer | Roglozor <me@roglozor.xyz> | 2026-11-27 04:56:53 +0000 |
| commit | 870af3e58cbfb8cbe047c894661c6ecf511ed220 (patch) | |
| tree | 212410151441be85b61039d63392a780ef6cf6f0 | |
| parent | d13540a2fd67463af21792536bb208b29dbf7d68 (diff) | |
Added new configuration in the layout file to insert a TOC into the left menu whenever it is needed, and added anchor links to the Home page. Will do other pages later as needed.HEADmaster
| -rw-r--r-- | _src/_includes/layout.html | 10 | ||||
| -rw-r--r-- | _src/index.html | 25 |
2 files changed, 29 insertions, 6 deletions
diff --git a/_src/_includes/layout.html b/_src/_includes/layout.html index a69560a..9a79d65 100644 --- a/_src/_includes/layout.html +++ b/_src/_includes/layout.html @@ -49,6 +49,16 @@ Menu </details> <br> +{% if toc %} +<details open> +<summary><b>On This Page</b></summary> +{% for item in toc %} +<a href="#{{item.id}}">{{item.title}}</a> +{% endfor %} +</details> +<br> +{% endif %} + <details open> <summary><b>Outgoing Links</b></summary> <a href="https://roglozor.itch.io/"> diff --git a/_src/index.html b/_src/index.html index ee114f7..74ec4aa 100644 --- a/_src/index.html +++ b/_src/index.html @@ -1,6 +1,19 @@ --- layout: layout.html extra_css: /assets/css/pokesprite-pokemon-gen8.css +toc: + - id: welcome + title: 1. Welcome + - id: about-me + title: 2. About Me + - id: projects + title: 3. Projects + - id: button-collection + title: 4. Button Collection + - id: hobbies-and-interests + title: 5. Hobbies & Interests + - id: favourite-pokemon + title: 6. Favourite Pokemon --- <h1><img style="height: 32px;" src="/assets/img/icons/dark/home.png"> Home @@ -73,7 +86,7 @@ style="image-rendering: pixelated;"></a> </div> <article> -<h2>Welcome!</h2> +<h2><a id="welcome"># </a>Welcome!</h2> <p> Thanks for taking the time to visit my site! I don't have a whole lot to share right now, I'm still working on a lot of things quietly, but I'll slowly @@ -107,7 +120,7 @@ using generative "AI" or anything similar. </article> <article> -<h2>About Me</h2> +<h2><a id="about-me"># </a>About Me</h2> <p> I'm a British (derogatory) hobbyist of creating various digital media, primarily a game developer. <i>Apparently</i> I'm an INFP-T, I'm currently in my 20s, and @@ -136,7 +149,7 @@ and configuring most things manually.</li> </article> <article> -<h2>Projects</h2> +<h2><a id="projects"># </a>Projects</h2> <p> These are simply my main projects as of recent. Please see the dedicated <a href="/projects/">Projects</a> page for the complete list. @@ -165,7 +178,7 @@ This game is still being worked on, so I don't have much to show yet! <div class="fun-buttons"> <article> -<h1>Button Collection</h1> +<h1><a id="button-collection"># </a>Button Collection</h1> <br> <div class="card"> <h2>My Own Buttons</h2> @@ -357,7 +370,7 @@ I just found them during my travels on the web and liked them. </article> </div> -<h1>Hobbies & Interests</h1> +<h1><a id="hobbies-and-interests"># </a>Hobbies & Interests</h1> <p> The general gist of my more creative side is already covered above, which are also just hobbies. This section is more of a catch-all for anything else that @@ -478,7 +491,7 @@ everything fuck you. </ul> <article> -<h1>Favourite Pokemon!</h1> +<h1><a id="favourite-pokemon"># </a>Favourite Pokemon!</h1> <p> I like WAY too many of these lil' guys so I'm limiting it to my top 6 in various categories. |
