Remove sidebar table of contents #1
This commit is contained in:
parent
f575f7684b
commit
8d66e8e2b3
@ -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.
|
- `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.
|
- `scripts`: Additional JavaScript scripts; expects them to be in the `./static/` directory.
|
||||||
- `katex`: Whether to enable the KaTeX library for rendering LaTeX.
|
- `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`: 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_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_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:
|
Other variables:
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
title = "Mods"
|
title = "Mods"
|
||||||
[extra]
|
[extra]
|
||||||
toc = true
|
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.
|
Mods enhance/change some Duckquill visuals. They are updated alongside Duckquill to ensure that you don't need to manually update them every release.
|
||||||
|
|||||||
@ -15,13 +15,6 @@
|
|||||||
{%- if config.extra.nav.links %}
|
{%- if config.extra.nav.links %}
|
||||||
{% include "partials/nav.html" %}
|
{% include "partials/nav.html" %}
|
||||||
{%- endif %}
|
{%- 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">
|
<main id="main-content">
|
||||||
{% block custom %}{% endblock custom %}
|
{% block custom %}{% endblock custom %}
|
||||||
{% block content %}{% endblock content %}
|
{% block content %}{% endblock content %}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
{%- include "partials/statements.html" -%}
|
{%- include "partials/statements.html" -%}
|
||||||
{%- if page.extra.toc and not page.extra.toc_sidebar -%}
|
{%- if page.extra.toc -%}
|
||||||
{%- include "partials/toc.html" -%}
|
{%- include "partials/toc.html" -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{{ page.content | safe }}
|
{{ page.content | safe }}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ section.title }}</h1>
|
<h1>{{ section.title }}</h1>
|
||||||
{%- include "partials/statements.html" -%}
|
{%- include "partials/statements.html" -%}
|
||||||
{%- if section.extra.toc and not section.extra.toc_sidebar -%}
|
{%- if section.extra.toc -%}
|
||||||
{%- include "partials/toc.html" -%}
|
{%- include "partials/toc.html" -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{{ section.content | safe }}
|
{{ section.content | safe }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user