summaryrefslogtreecommitdiff
path: root/_src/_includes
diff options
context:
space:
mode:
authorRoglozor <me@roglozor.xyz>2026-11-27 04:56:53 +0000
committerRoglozor <me@roglozor.xyz>2026-11-27 04:56:53 +0000
commit870af3e58cbfb8cbe047c894661c6ecf511ed220 (patch)
tree212410151441be85b61039d63392a780ef6cf6f0 /_src/_includes
parentd13540a2fd67463af21792536bb208b29dbf7d68 (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
Diffstat (limited to '_src/_includes')
-rw-r--r--_src/_includes/layout.html10
1 files changed, 10 insertions, 0 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/">