open toc on wide displays

This commit is contained in:
Wonderfall
2022-07-28 03:17:31 +02:00
parent dfe6ecc550
commit b9e4f627cc
2 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@
{{- $has_headers := ge (len $headers) 1 -}}
{{- if $has_headers -}}
<div class="toc side">
<details {{if (.Param "TocOpen") }} open{{ end }}>
<details id="toc" {{if (.Param "TocOpen") }} open{{ end }}>
<summary accesskey="c" title="(Alt + C)">
<span class="details">{{- i18n "toc" | default "Table of Contents" }}</span>
</summary>