portails/layouts/partials/sidebar/docs-toc.html

21 lines
607 B
HTML
Raw Normal View History

{{ if and (ne .Params.toc false) (ne .TableOfContents "<nav id=\"TableOfContents\"></nav>") -}}
2022-06-10 16:33:08 +02:00
<div class="d-xl-none">
<p>
<a class="btn btn-outline-primary btn-sm" data-bs-toggle="collapse" href="#onThisPage" role="button" aria-expanded="false" aria-controls="onThisPage">
On this page
</a>
</p>
<div class="collapse" id="onThisPage">
<div class="card card-body py-1">
<div class="page-links">
{{ .TableOfContents }}
</div>
</div>
2020-04-15 15:48:16 +02:00
</div>
2022-06-10 16:33:08 +02:00
</div>
<div class="page-links d-none d-xl-block">
<h3>On this page</h3>
{{ .TableOfContents }}
</div>
{{ end -}}