Documentation/content/_includes/toc-collapse.njk
Gusted f564ca6cd2 Use Halfmoon v2 (#655)
Refresh Codeberg documentatation looks by using Halfmoon v2.

Mobile UI also got a overhaul.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/655
Reviewed-by: Bastian Greshake Tzovaras <gedankenstuecke@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-08-12 17:53:32 +02:00

13 lines
447 B
Text

{% if content | toc %}
<nav class="mb-3 d-xl-none" data-pagefind-ignore="all">
<details class="collapse-panel">
<summary class="btn btn-secondary d-block w-100 py-2 d-flex align-items-center justify-content-between">
<span class="antialiased">On this page</span>
{% fas_icon "angle-down" %}
</summary>
<div id="toc" class="border rounded mt-2">
{{ content | toc | safe }}
</div>
</details>
</nav>
{% endif %}