2023-09-18 20:24:49 +02:00
|
|
|
{{- $onwidths := cond (isset . "onwidths") .onwidths "area-more" }}
|
|
|
|
{{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }}
|
|
|
|
{{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }}
|
|
|
|
{{- with .page }}
|
2024-02-10 23:22:35 +01:00
|
|
|
{{- $printFormat := .OutputFormats.Get "print" }}
|
2024-08-27 15:34:36 +02:00
|
|
|
{{- $show := $printFormat }}
|
|
|
|
{{- if $show }}
|
2024-08-29 12:28:34 +02:00
|
|
|
{{- $show = not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
|
2024-08-27 15:34:36 +02:00
|
|
|
{{- end }}
|
|
|
|
{{- if $show }}
|
2023-09-18 20:24:49 +02:00
|
|
|
{{- 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 08:40:58 +01:00
|
|
|
"hint" (printf "%s (CTRL+ALT+p)" (T "Print-this-chapter"))
|
2023-09-18 20:24:49 +02:00
|
|
|
)}}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|