2023-09-18 18:24:49 +00:00
|
|
|
{{- $onwidths := cond (isset . "onwidths") .onwidths "area-more" }}
|
|
|
|
{{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }}
|
|
|
|
{{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }}
|
|
|
|
{{- with .page }}
|
|
|
|
{{- $format := partial "get-format.hugo" . }}
|
|
|
|
{{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }}
|
|
|
|
{{- $printFormat := .OutputFormats.Get "PRINT" }}
|
|
|
|
{{- if and (eq $outputFormat "html") $printFormat }}
|
|
|
|
{{- partial "topbar/func/button.html" (dict
|
|
|
|
"page" .
|
|
|
|
"class" "topbar-button-print"
|
|
|
|
"href" $printFormat.RelPermalink
|
|
|
|
"icon" "print"
|
|
|
|
"onwidths" $onwidths
|
|
|
|
"onwidthm" $onwidthm
|
|
|
|
"onwidthl" $onwidthl
|
2023-12-05 07:40:58 +00:00
|
|
|
"hint" (printf "%s (CTRL+ALT+p)" (T "Print-this-chapter"))
|
2023-09-18 18:24:49 +00:00
|
|
|
)}}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|