hugo-theme-relearn/layouts/partials/topbar/button/sidebar.html

15 lines
491 B
HTML
Raw Normal View History

2023-09-18 18:24:49 +00:00
{{- $onwidths := cond (isset . "onwidths") .onwidths "show" }}
{{- $onwidthm := cond (isset . "onwidthm") .onwidthm "hide" }}
{{- $onwidthl := cond (isset . "onwidthl") .onwidthl "hide" }}
{{- with .page }}
{{- partial "topbar/func/button.html" (dict
"page" .
"class" "topbar-button-sidebar"
"href" "javascript:toggleNav()"
"icon" "bars"
"onwidths" $onwidths
"onwidthm" $onwidthm
"onwidthl" $onwidthl
2023-12-05 07:40:58 +00:00
"hint" (printf "%s (CTRL+ALT+n)" (T "Navigation-toggle"))
2023-09-18 18:24:49 +00:00
)}}
{{- end }}