Expand table of contents and show background colors while printing

This commit is contained in:
2021-11-18 17:47:31 -06:00
parent d0c216165e
commit 217e54c1b5
3 changed files with 36 additions and 5 deletions

View File

@ -31,12 +31,16 @@
{{ if .Params.Toc }}
<div id="table-of-contents">
<div class="table-of-contents">
<details>
<summary>{{ i18n "table_of_contents" }}</summary>
{{ .TableOfContents }}
</details>
</div>
<div class="table-of-contents print">
{{ i18n "table_of_contents" }}
{{ .TableOfContents }}
</div>
{{ end }}
{{ with .Resources.GetMatch "feature" }}