Files
paige-hugo/layouts/partials/paige/toc.html
2023-01-29 11:27:17 -08:00

10 lines
359 B
HTML

{{ $page := . }}
{{ if and $page.Content $page.Params.paige.toc (not (eq ($page.Scratch.Get "paige_show_full_pages") true)) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
<section class="paige-toc">
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }}
</div>
</section>
{{ end }}