mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
24 lines
No EOL
889 B
HTML
24 lines
No EOL
889 B
HTML
{{- $area := .area }}
|
|
{{- $icon := .icon }}
|
|
{{- $hint := .hint }}
|
|
{{- $title := .title }}
|
|
{{- $onempty := cond (isset . "onempty") .onempty "disable" }}
|
|
{{- $onwidths := cond (isset . "onwidths") .onwidths "show" }}
|
|
{{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }}
|
|
{{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }}
|
|
{{- with .page }}
|
|
{{- $content := printf "\n <div class=\"topbar-area topbar-area-%s\" data-area=\"%s\">%s\n </div>" $area $area (partial (printf "topbar/area/%s.html" $area) .) | safeHTML }}
|
|
{{- partial "topbar/func/button.html" (dict
|
|
"page" .
|
|
"class" (printf "topbar-button-%s" $area)
|
|
"href" "javascript:toggleTopbarFlyout(this)"
|
|
"icon" $icon
|
|
"onempty" $onempty
|
|
"onwidths" $onwidths
|
|
"onwidthm" $onwidthm
|
|
"onwidthl" $onwidthl
|
|
"title" $title
|
|
"hint" $hint
|
|
"content" $content
|
|
)}}
|
|
{{- end }} |