mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-16 21:36:56 +01:00
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