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> <main>
<article> <article>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ if .Params.toc }}
<aside id="toc"> <aside id="toc">
<p>Conteúdo:</p> <p>Conteúdo:</p>
{{ .Page.TableOfContents }} {{ .Page.TableOfContents }}
</aside> </aside>
{{ end }}
<div> <div>
{{ .Content }} {{ .Content }}
</div> </div>