Add basic toc support
This commit is contained in:
parent
0abf3ea012
commit
feb4c38717
6 changed files with 60 additions and 0 deletions
|
@ -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 }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue