Add table of contents
This commit is contained in:
parent
f89e1c8d6c
commit
15ecb623e9
1 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,15 @@
|
||||||
<a href="{{ .RelPermalink }}" rel="next" style="float: right">Next post: <i>{{ .Title }}</i> »</a>
|
<a href="{{ .RelPermalink }}" rel="next" style="float: right">Next post: <i>{{ .Title }}</i> »</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<br><br>
|
<br><br>
|
||||||
|
{{ if and (ne .Params.toc "false") (or (eq .Params.toc "true") (gt .WordCount 400)) }}
|
||||||
|
<aside>
|
||||||
|
<details>
|
||||||
|
<summary>Table of Contents</summary>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
<hr>
|
||||||
|
</details>
|
||||||
|
</aside>
|
||||||
|
{{ end }}
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
Reference in a new issue