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
2020-02-10 14:11:01 +00:00
< section class = "sidebar hide" >
< script > document . querySelector ( '.sidebar' ) . classList . remove ( 'hide' ) < / script >
2019-12-26 06:44:04 +00:00
< div class = "toc__flexbox" data-position = "{{ if $.Param " hideToc " } } absolute { { else } } fixed { { end } } " >
2020-02-16 17:57:14 +00:00
< h6 class = "toc__title" data-ani = "{{ $.Site.Params.enableUiAnimation | default " true " } } " > {{ i18n "toc-label" }}< / h6 >
2019-11-14 03:31:02 +00:00
{{ if $.Param "enableTocSwitch" }}
2020-02-16 17:57:14 +00:00
< label class = "switch" data-ani = "{{ $.Site.Params.enableUiAnimation | default " true " } } " >
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-02-16 17:57:14 +00:00
< div class = "toc {{ if $.Param " hideToc " } } hide { { end } } " data-dir = "{{ if ne ($.Param " languagedir " ) " rtl " } } ltr { { else } } rtl { { end } } " data-folding = "{{ if $.Param " tocFolding " } } true { { else } } false { { end } } " data-ani = "{{ $.Site.Params.enableUiAnimation | default " true " } } " >
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 }}