mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34:09 +01:00
Document changes in sidebar-tree.html
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
c5769545e2
commit
4680eb0dc5
|
|
@ -1,9 +1,12 @@
|
||||||
{{/*
|
{{/*
|
||||||
|
|
||||||
A modified version of the siderbar-tree.html partial in Docsy to add the ToC.
|
A modified version of the siderbar-tree.html partial in Docsy, adding:
|
||||||
|
|
||||||
|
* The "toc.html" partial at L45.
|
||||||
|
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
|
{{/* We cache this partial for bigger sites and set the active class client side. */ -}}
|
||||||
{{ $sidebarCacheLimit := .Site.Params.ui.sidebar_cache_limit | default 2000 -}}
|
{{ $sidebarCacheLimit := .Site.Params.ui.sidebar_cache_limit | default 2000 -}}
|
||||||
{{ $shouldDelayActive := ge (len .Site.Pages) $sidebarCacheLimit -}}
|
{{ $shouldDelayActive := ge (len .Site.Pages) $sidebarCacheLimit -}}
|
||||||
<div id="td-sidebar-menu" class="td-sidebar__inner{{ if $shouldDelayActive }} d-none{{ end }}">
|
<div id="td-sidebar-menu" class="td-sidebar__inner{{ if $shouldDelayActive }} d-none{{ end }}">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue