Add basic toc support

This commit is contained in:
Track3 committed 2018-12-24 22:17:22 +08:00
1 parent 0abf3ea012
commit feb4c38717
6 files changed
+60

No files matched your search

+6
View File
@@ -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 }}">