add conditional table of contents

This commit is contained in:
Dave Derderian 2019-03-21 08:40:07 +09:00
parent bca791fe8c
commit 3cf9638af1

View File

@ -20,6 +20,12 @@
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}
{{ if .Params.Toc }}
<div class="table-of-contents">
{{ .TableOfContents }}
</div>
{{ end }}
<div class="post-content">
{{ .Content }}
</div>