Add basic toc support

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

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 }}">