toc bug fix
This commit is contained in:
parent
adc8e4b9ca
commit
29777fe6ab
|
@ -1,18 +1,20 @@
|
|||
<div class="wrapper__right">
|
||||
{{ if and (eq ($.Param "tocPosition") "outer") .IsPage }}
|
||||
{{ if or ($.Param "enableToc") ($.Param "toc") }}
|
||||
<div class="toc__flexbox--outer" data-position="fixed">
|
||||
<h6 class="toc__title toc__title--outer">{{ i18n "toc-label" }}</h6>
|
||||
{{ if $.Param "enableTocSwitch" }}
|
||||
<label class="switch">
|
||||
<input id="visible-toc" aria-label="Visible TOC" type="checkbox" {{ if $.Param "hideToc" }}{{ else }}checked{{ end }}>
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="toc toc__outer {{ if $.Param "hideToc" }}hide{{ end }}">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ if and (ne .Type "about") (ne .Type "contact") (ne .Type "gallery") }}
|
||||
{{ if or ($.Param "enableToc") ($.Param "toc") }}
|
||||
<div class="toc__flexbox--outer" data-position="fixed">
|
||||
<h6 class="toc__title toc__title--outer">{{ i18n "toc-label" }}</h6>
|
||||
{{ if $.Param "enableTocSwitch" }}
|
||||
<label class="switch">
|
||||
<input id="visible-toc" aria-label="Visible TOC" type="checkbox" {{ if $.Param "hideToc" }}{{ else }}checked{{ end }}>
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="toc toc__outer {{ if $.Param "hideToc" }}hide{{ end }}">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue