remove site.params.toctile from if condition

This commit is contained in:
Dave Derderian 2019-03-25 12:00:41 +09:00 committed by panr
parent 460409971b
commit bb19133255

View File

@ -29,15 +29,15 @@
{{ if .Params.Toc }} {{ if .Params.Toc }}
<div class="table-of-contents"> <div class="table-of-contents">
<h2> <h2>
{{ if .Params.TocTitle }} {{ if .Params.TocTitle }}
{{ .Params.TocTitle }} {{ .Params.TocTitle }}
{{ else if $.Site.Params.TocTitle }} {{ else if $.Site.Params.TocTitle }}
{{ $.Site.Params.TocTitle }} {{ $.Site.Params.TocTitle }}
{{ else }} {{ else }}
Table of Contents Table of Contents
{{ end }} {{ end }}
</h2> </h2>
{{ .TableOfContents }} {{ .TableOfContents }}
</div> </div>
{{ end }} {{ end }}