toc only when explicitly enabled
This commit is contained in:
parent
6c16f5afa9
commit
84c245d47c
|
@ -11,10 +11,12 @@
|
|||
{{ if .Params.Image }}
|
||||
<img src="{{ .Params.Image }}" alt="" />
|
||||
{{ end }}
|
||||
<div class="articleToc">
|
||||
{{ .TableOfContents }}
|
||||
<hr />
|
||||
</div>
|
||||
{{ if (.Params.toc | default false) }}
|
||||
<div class="articleToc">
|
||||
{{ .TableOfContents }}
|
||||
<hr />
|
||||
</div>
|
||||
{{ end }}
|
||||
<div>{{ .Content }}</div>
|
||||
</article>
|
||||
{{ if .Params.tags }}
|
||||
|
|
Loading…
Reference in New Issue