Make TOC conditional to explicit param

main
drebs 2023-12-30 14:13:46 -03:00
parent b6ffd71169
commit 83e987de2e
1 changed files with 2 additions and 0 deletions

View File

@ -2,10 +2,12 @@
<main>
<article>
<h1>{{ .Title }}</h1>
{{ if .Params.toc }}
<aside id="toc">
<p>Conteúdo:</p>
{{ .Page.TableOfContents }}
</aside>
{{ end }}
<div>
{{ .Content }}
</div>