hugo-theme-even/layouts/partials/post/toc.html
2017-08-27 22:38:42 +08:00

8 lines
No EOL
250 B
HTML

{{ 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">
{{.TableOfContents}}
</div>
</div>
{{- end }}