2019-11-12 10:03:15 +00:00
{{ if $.Param "enableSidebar" }}
2020-01-21 08:53:58 +00:00
{{ if and (or ($.Param "enableToc") ($.Param "toc")) (ne ($.Param "tocPosition") "outer") }}
2019-11-04 13:09:44 +00:00
2019-11-29 09:01:11 +00:00
< section class = "sidebar" >
2019-12-26 06:44:04 +00:00
< div class = "toc__flexbox" data-position = "{{ if $.Param " hideToc " } } absolute { { else } } fixed { { end } } " >
2019-11-04 13:09:44 +00:00
< h6 class = "toc__title" > {{ i18n "toc-label" }}< / h6 >
2019-11-14 03:31:02 +00:00
{{ if $.Param "enableTocSwitch" }}
< label class = "switch" >
2019-12-26 06:44:04 +00:00
< input id = "toggle-toc" aria-label = "Toggle TOC" type = "checkbox" { { if $ . Param " hideToc " } } { { else } } checked { { end } } >
2019-11-14 03:31:02 +00:00
< span class = "slider round" > < / span >
< / label >
{{ end }}
2019-11-12 10:03:15 +00:00
< / div >
2020-01-31 06:06:30 +00:00
< div class = "toc {{ if $.Param " hideToc " } } hide { { end } } " data-dir = "{{ if eq ($.Param " languagedir " ) " rtl " } } rtl { { else } } ltr { { end } } " data-folding = "{{ if $.Param " tocFolding " } } true { { else } } false { { end } } " >
2020-01-01 11:00:42 +00:00
{{ .TableOfContents }}
2019-11-04 13:09:44 +00:00
< / div >
2019-11-29 09:01:11 +00:00
< / section >
2019-11-04 13:09:44 +00:00
2019-11-12 10:03:15 +00:00
{{ end }}
2019-11-04 13:09:44 +00:00
{{ end }}