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 /_src/_includes | |
| 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
Diffstat (limited to '_src/_includes')
| -rw-r--r-- | _src/_includes/layout.html | 10 |
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/"> |
