Docs improvements, allow setting more stuff outside of articles

This commit is contained in:
daudix
2024-09-08 23:50:20 +03:00
parent f244a2b57e
commit a84165fe3b
10 changed files with 134 additions and 70 deletions

View File

@ -45,25 +45,7 @@
{%- include "partials/statements.html" -%}
{%- if page.extra.toc -%}
<h2>{{ macros_translate::translate(key="table_of_contents", default="Table of Contents", language_strings=language_strings) }}</h2>
<ul>
{%- for h1 in page.toc -%}
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{%- if h1.children -%}
<ul>
{%- for h2 in h1.children -%}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</li>
{%- endfor -%}
</ul>
{%- endif -%}
{%- include "partials/toc.html" -%}
{{ page.content | safe }}
</article>