aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/post/toc.html
blob: 1cb78043300fbb32633feb48c5dff2c9fe646e38 (plain)
1
2
3
4
5
6
7
8
{{ if and .Site.Params.toc (ne .Params.toc false) }}
<div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">{{ .Site.Data.even.default.posts.toc }}</h2>
  <div class="post-toc-content{{ if or .Params.autoCollapseToc (and .Site.Params.autoCollapseToc (ne .Params.autoCollapseToc false)) | not }} always-active{{ end }}">
      {{.TableOfContents}}
  </div>
</div>
{{- end }}