remove site.params.toctile from if condition

This commit is contained in:
Dave Derderian
2020-05-29 00:18:15 +02:00
committed by panr
parent 460409971b
commit bb19133255
+9 -9
View File
@@ -29,15 +29,15 @@
{{ if .Params.Toc }}
<div class="table-of-contents">
<h2>
{{ if .Params.TocTitle }}
{{ .Params.TocTitle }}
{{ else if $.Site.Params.TocTitle }}
{{ $.Site.Params.TocTitle }}
{{ else }}
Table of Contents
{{ end }}
</h2>
<h2>
{{ if .Params.TocTitle }}
{{ .Params.TocTitle }}
{{ else if $.Site.Params.TocTitle }}
{{ $.Site.Params.TocTitle }}
{{ else }}
Table of Contents
{{ end }}
</h2>
{{ .TableOfContents }}
</div>
{{ end }}