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>
|
||||
{{ end }}
|
||||
<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>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
|
Loading…
Add table
Reference in a new issue