Hide ToC if there arent any
This commit is contained in:
parent
189509ce00
commit
fce036fea8
1 changed files with 5 additions and 3 deletions
|
@ -16,8 +16,10 @@
|
||||||
</p>
|
</p>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="content mt-3">
|
<div class="content mt-3">
|
||||||
|
{{ if .TableOfContents }}
|
||||||
<div class="float-lg-right ml-3 bg-light p-3">
|
<div class="float-lg-right ml-3 bg-light p-3">
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue