aboutsummaryrefslogtreecommitdiff
path: root/layouts/posts/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/posts/single.html')
-rw-r--r--layouts/posts/single.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index e8b37a8..a8b5c55 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -32,6 +32,12 @@
{{- end }}
</footer>
</article>
+ {{- if .Params.toc }}
+ <aside id="toc">
+ <div class="toc-title">Table of Contents</div>
+ {{ .TableOfContents }}
+ </aside>
+ {{- end }}
<div class="post-nav thin">
{{- with .NextInSection }}
<a class="next-post" href="{{ .Permalink }}">