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>
|
||||
<hr />
|
||||
<div class="content mt-3">
|
||||
<div class="float-lg-right ml-3 bg-light p-3">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ if .TableOfContents }}
|
||||
<div class="float-lg-right ml-3 bg-light p-3">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue