github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/docs/themes/hugo-theme-relearn/layouts/partials/topbar/func/area-button.html (about)

     1  {{- $area := .area }}
     2  {{- $icon := .icon }}
     3  {{- $hint := .hint }}
     4  {{- $title := .title }}
     5  {{- $onempty := cond (isset . "onempty") .onempty "disable" }}
     6  {{- $onwidths := cond (isset . "onwidths") .onwidths "show" }}
     7  {{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }}
     8  {{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }}
     9  {{- with .page }}
    10  	{{- $format := partial "get-format.hugo" . }}
    11  	{{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }}
    12  	{{- if and (eq $outputFormat "html") }}
    13  		{{- $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 }}
    14  		{{- partial "topbar/func/button.html" (dict
    15  			"page" .
    16  			"class" (printf "topbar-button-%s" $area)
    17  			"href" "javascript:toggleTopbarFlyout(this)"
    18  			"icon" $icon
    19  			"onempty" $onempty
    20  			"onwidths" $onwidths
    21  			"onwidthm" $onwidthm
    22  			"onwidthl" $onwidthl
    23  			"title" $title
    24  			"hint" $hint
    25  			"content" $content
    26  		)}}
    27  	{{- end }}
    28  {{- end }}