matrix-spec/layouts/partials/toc.html
Kévin Commaille c5769545e2
Fixes to toc.html
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-06-11 21:00:38 +02:00

16 lines
285 B
HTML

{{/*
A modified version of the toc.html partial in Docsy.
*/}}
{{ $page := .Params }}
{{ if not .Params.notoc -}}
{{ with .TableOfContents -}}
<hr>
<div id="toc">
<a id="toc-title" href="#">{{ $page.Title }}</a>
{{ . }}
</div>
{{ end -}}
{{ end -}}