Skip to content

Commit

Permalink
make the toc optional
Browse files Browse the repository at this point in the history
  • Loading branch information
xvallspl committed Jun 24, 2020
1 parent 705e50b commit 5112b4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ <h1 id="post__title">{{.Title}}</h1>
{{ partial "math.html" . }}
{{ end }}
</article>
{{ if or .Params.toc .Site.Params.toc }}
{{ .TableOfContents }}
{{ end }}
</div>
{{ partial "tags.html" .}} {{ partial "post-pagination.html" .}}
</div>
Expand Down

0 comments on commit 5112b4a

Please sign in to comment.