2020-01-28 04:37:42 +00:00
|
|
|
{{ if ne ($.Param "languagedir") "rtl" }}
|
2020-02-10 14:11:01 +00:00
|
|
|
<div class="wrapper__right hide" dir="ltr">
|
|
|
|
<script>document.querySelector('.wrapper__right').classList.remove('hide')</script>
|
2020-01-22 12:14:40 +00:00
|
|
|
{{ if and (eq ($.Param "tocPosition") "outer") .IsPage }}
|
2020-01-22 12:22:19 +00:00
|
|
|
{{ if and (ne .Type "about") (ne .Type "contact") (ne .Type "gallery") }}
|
|
|
|
{{ if or ($.Param "enableToc") ($.Param "toc") }}
|
2020-01-28 04:37:42 +00:00
|
|
|
<div class="toc__flexbox--outer" data-position="fixed" data-dir="ltr">
|
2020-01-22 12:22:19 +00:00
|
|
|
<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>
|
2020-01-31 06:06:30 +00:00
|
|
|
<div class="toc toc__outer {{ if $.Param "hideToc" }}hide{{ end }}" data-dir="ltr" data-folding="{{ if $.Param "tocFolding" }}true{{ else }}false{{ end }}">
|
2020-01-22 12:22:19 +00:00
|
|
|
{{ .TableOfContents }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2020-01-21 08:53:58 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-01-28 04:37:42 +00:00
|
|
|
{{ end }}
|