|
@@ -28,8 +28,10 @@
|
|
|
{{ $active = or $active (in $currentURL $sectionName1) }}
|
|
{{ $active = or $active (in $currentURL $sectionName1) }}
|
|
|
|
|
|
|
|
{{ if $ctx.Params.Collapsible }}
|
|
{{ if $ctx.Params.Collapsible }}
|
|
|
- <span class="menu__title--collapse {{ if $active }}active{{ end }}" data-depth="{{ $depth }}" data-permalink="{{ $ctx.Permalink }}">
|
|
|
|
|
- {{ $ctx.Title }}
|
|
|
|
|
|
|
+ <li class="menu__title--collapse {{ if $active }}active{{ end }}" data-depth="{{ $depth }}" data-permalink="{{ $ctx.Permalink }}">
|
|
|
|
|
+ <span class="menu__title--collapse-text">
|
|
|
|
|
+ {{ $ctx.Title }}
|
|
|
|
|
+ </span>
|
|
|
<span class="menu__title--icon {{ if $active }}{{ if eq ($root.Param "languagedir") "rtl" }}downrtl{{ else }}down{{ end }}{{ else }}right{{ end }}">
|
|
<span class="menu__title--icon {{ if $active }}{{ if eq ($root.Param "languagedir") "rtl" }}downrtl{{ else }}down{{ end }}{{ else }}right{{ end }}">
|
|
|
{{ if eq ($root.Param "languagedir") "rtl" }}
|
|
{{ if eq ($root.Param "languagedir") "rtl" }}
|
|
|
{{ partial "svgs/arrow-left.svg" (dict "width" 22 "height" 22) }}
|
|
{{ partial "svgs/arrow-left.svg" (dict "width" 22 "height" 22) }}
|
|
@@ -37,7 +39,7 @@
|
|
|
{{ partial "svgs/arrow-right.svg" (dict "width" 22 "height" 22) }}
|
|
{{ partial "svgs/arrow-right.svg" (dict "width" 22 "height" 22) }}
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
</span>
|
|
</span>
|
|
|
- </span>
|
|
|
|
|
|
|
+ </li>
|
|
|
<ul class="menu__list {{ if $active }}active{{ else if (in $ctx.Permalink (print "/" $sectionName1 "/")) }}{{ end }}" data-data={{ print "/" $sectionName1 "/"}} data-link={{ .root.Permalink }}>
|
|
<ul class="menu__list {{ if $active }}active{{ else if (in $ctx.Permalink (print "/" $sectionName1 "/")) }}{{ end }}" data-data={{ print "/" $sectionName1 "/"}} data-link={{ .root.Permalink }}>
|
|
|
{{ range $ctx.Pages.ByWeight }}
|
|
{{ range $ctx.Pages.ByWeight }}
|
|
|
{{ if .Params.Collapsible }}
|
|
{{ if .Params.Collapsible }}
|