Documentation/content/_includes/toc-side.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

10 lines
399 B
Text

{% if content | toc %}
<nav class="col-xl-3 position-relative d-none d-xl-block" id="toc-side" data-pagefind-ignore="all">
<div class="position-sticky start-0 py-3 py-sm-4 ps-4" style="top: 63px;">
<span class="h4 lh-base">On this page</span>
<div id="toc" class="overflow-y-auto pe-2" style="max-height: 43.75rem;">
{{ content | toc | safe }}
</div>
</div>
</nav>
{% endif %}