-
Notifications
You must be signed in to change notification settings - Fork 32
/
toggle-menu.html
25 lines (25 loc) · 1.17 KB
/
toggle-menu.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{ if $.Param "enableWideBlogSwitch" }}
<label class="switch switch__abs">
{{ if ($.Param "wideViewAsDefault") }}
<input id="toggle-menu" aria-label="Toggle Menu Visibility" type="checkbox" />
<span class="slider">
<span class="slider__icon {{ if (ne ($.Param "languagedir") "rtl") }}{{ else }}hide{{ end }}">
{{ partial "svgs/arrow-forward.svg" (dict "width" 20 "height" 20) }}
</span>
<span class="slider__icon {{ if (ne ($.Param "languagedir") "rtl") }}hide{{ end }}">
{{ partial "svgs/arrow-back.svg" (dict "width" 20 "height" 20) }}
</span>
</span>
{{ else }}
<input id="toggle-menu" aria-label="Toggle Menu Visibility" type="checkbox" checked />
<span class="slider">
<span class="slider__icon {{ if (ne ($.Param "languagedir") "rtl") }}{{ else }}hide{{ end }}">
{{ partial "svgs/arrow-back.svg" (dict "width" 20 "height" 20) }}
</span>
<span class="slider__icon {{ if (ne ($.Param "languagedir") "rtl") }}hide{{ end }}">
{{ partial "svgs/arrow-forward.svg" (dict "width" 20 "height" 20) }}
</span>
</span>
{{ end }}
</label>
{{ end }}