mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
15 lines
No EOL
492 B
HTML
15 lines
No EOL
492 B
HTML
{{- $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
|
|
"title" (printf "%s (CTRL+ALT+n)" (T "Navigation-toggle"))
|
|
)}}
|
|
{{- end }} |