github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/docs/themes/hugo-theme-relearn/layouts/partials/topbar/button/print.html (about) 1 {{- $onwidths := cond (isset . "onwidths") .onwidths "area-more" }} 2 {{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }} 3 {{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }} 4 {{- with .page }} 5 {{- $format := partial "get-format.hugo" . }} 6 {{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }} 7 {{- $printFormat := .OutputFormats.Get "print" }} 8 {{- if and (eq $outputFormat "html") $printFormat }} 9 {{- partial "topbar/func/button.html" (dict 10 "page" . 11 "class" "topbar-button-print" 12 "href" $printFormat.RelPermalink 13 "icon" "print" 14 "onwidths" $onwidths 15 "onwidthm" $onwidthm 16 "onwidthl" $onwidthl 17 "hint" (printf "%s (CTRL+ALT+p)" (T "Print-this-chapter")) 18 )}} 19 {{- end }} 20 {{- end }}