Remove sidebar table of contents #1

This commit is contained in:
david-swift 2025-02-27 17:12:51 +01:00
parent f575f7684b
commit 8d66e8e2b3
5 changed files with 2 additions and 12 deletions

View File

@ -100,11 +100,9 @@ Configuration variables from `config.toml` that can be set/overriden per page/se
- `styles`: Additional CSS styles; expects them to be in the `./static/` directory. If you are using Sass it will be generated there automatically.
- `scripts`: Additional JavaScript scripts; expects them to be in the `./static/` directory.
- `katex`: Whether to enable the KaTeX library for rendering LaTeX.
<!-- TODO: Check table of contents -->
- `toc`: Enables table of contents. Only first 2 levels of headings are listed.
- `toc_inline`: Whether to render inline table of contents at the top of all pages, in addition to floating quick navigation buttons.
- `toc_ordered`: Whether to use numbered (ordered) list for table of contents.
- `toc_sidebar`: Whether to display table of contents as a sidebar (useful for long pages).
Other variables:

View File

@ -2,7 +2,6 @@
title = "Mods"
[extra]
toc = true
toc_sidebar = true
+++
Mods enhance/change some Duckquill visuals. They are updated alongside Duckquill to ensure that you don't need to manually update them every release.

View File

@ -15,13 +15,6 @@
{%- if config.extra.nav.links %}
{% include "partials/nav.html" %}
{%- endif %}
{%- if page.extra.toc_sidebar or section.extra.toc_sidebar -%}
<div id="sidebar">
<div>
{%- include "partials/toc.html" -%}
</div>
</div>
{%- endif -%}
<main id="main-content">
{% block custom %}{% endblock custom %}
{% block content %}{% endblock content %}

View File

@ -3,7 +3,7 @@
{% block content %}
<h1>{{ page.title }}</h1>
{%- include "partials/statements.html" -%}
{%- if page.extra.toc and not page.extra.toc_sidebar -%}
{%- if page.extra.toc -%}
{%- include "partials/toc.html" -%}
{%- endif -%}
{{ page.content | safe }}

View File

@ -3,7 +3,7 @@
{% block content %}
<h1>{{ section.title }}</h1>
{%- include "partials/statements.html" -%}
{%- if section.extra.toc and not section.extra.toc_sidebar -%}
{%- if section.extra.toc -%}
{%- include "partials/toc.html" -%}
{%- endif -%}
{{ section.content | safe }}