Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/main/component/toggle-sidebar.html')
-rw-r--r--layouts/partials/main/component/toggle-sidebar.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/main/component/toggle-sidebar.html b/layouts/partials/main/component/toggle-sidebar.html
new file mode 100644
index 0000000..93c7078
--- /dev/null
+++ b/layouts/partials/main/component/toggle-sidebar.html
@@ -0,0 +1,13 @@
+{{ if $.Param "enableTocSwitch" }}
+ <label class="switch">
+ <input id="toggle-sidebar" aria-label="Toggle Sidebar Visibility" type="checkbox" checked />
+ <span class="slider">
+ <span class="slider__icon">
+ {{ partial "svgs/arrow-forward.svg" (dict "width" 20 "height" 20) }}
+ </span>
+ <span class="slider__icon hide">
+ {{ partial "svgs/arrow-back.svg" (dict "width" 20 "height" 20) }}
+ </span>
+ </span>
+ </label>
+{{ end }} \ No newline at end of file