forked from mirrors/hugo-tufte
Add table of contents partial template.
This commit is contained in:
parent
2c4ac3082f
commit
14cec251c4
1 changed files with 8 additions and 0 deletions
8
layouts/partials/toc.html
Normal file
8
layouts/partials/toc.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ if .Params.toc }}
|
||||
<section>
|
||||
<details closed class="toc">
|
||||
<summary>Contents</summary>
|
||||
{{ .TableOfContents }}
|
||||
</details>
|
||||
</section>
|
||||
{{ end }}
|
Loading…
Reference in a new issue