{{/* The tree and table of contents render twice, so Hugo's id on the table of contents goes. */}} {{ $toc := replace .TableOfContents ` id="TableOfContents"` "" | safeHTML }} {{ $hasToc := gt (len .Fragments.Headings) 0 }}
{{ i18n "docsMenu" }}
{{ partial "docs-tree.html" . }}
{{ if $hasToc }}
{{ i18n "docsOnThisPage" }}
{{ $toc }}
{{ end }}