{{ $isPad := or (in (slice "archive" "posts" "page") .Type) }} {{ $isPad = or $isPad (and (eq .Kind "page") (not (in (slice "about" "contact" "publication") .Type))) }} {{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }} {{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }} {{ if ne ($.Param "languagedir") "rtl" }}
{{ if and (eq ($.Param "tocPosition") "outer") .IsPage }} {{ if and (ne .Type "about") (ne .Type "contact") (ne .Type "gallery") }} {{ if or ($.Param "enableToc") ($.Param "toc") }}
{{ i18n "toc-label" }}
{{ if $.Param "enableTocSwitch" }} {{ end }}
{{ .TableOfContents }}
{{ end }} {{ end }} {{ end }}
{{ else if and (eq ($.Param "languagedir") "rtl") ($.Param "enableSidebarMenu") }}
{{ end }}