mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 22:09:44 +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