You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
710 B
HTML

{{ if .Content }}
{{ if and .Params.paige.toc (ne .TableOfContents `<nav id="TableOfContents"></nav>`) }}
<section>
<div class="container-fluid mb-3">
<div class="justify-content-center row">
<div class="border col col-auto pe-3 ps-3 pt-3 rounded">
{{ .TableOfContents }}
</div>
</div>
</div>
</section>
{{ end }}
<div class="container-fluid">
<div class="justify-content-center row">
<div class="col col-auto paige-content px-0">{{ .Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` `${1}<a class="paigeheaderlink" href="#${2}"><i class="bi bi-link-45deg small"></i></a>${3}` | safeHTML }}</div>
</div>
</div>
{{ end }}