mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-19 03:10:24 +00:00
22 lines
729 B
HTML
22 lines
729 B
HTML
|
{{- $onwidths := cond (isset . "onwidths") .onwidths "area-more" }}
|
||
|
{{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }}
|
||
|
{{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }}
|
||
|
{{- with .page }}
|
||
|
{{- $format := .OutputFormats.Get "markdown" }}
|
||
|
{{- $show := and $format (not (.Param "disableMarkdownButton")) }}
|
||
|
{{- if $show }}
|
||
|
{{- $show = not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
|
||
|
{{- end }}
|
||
|
{{- if $show }}
|
||
|
{{- partial "topbar/func/button.html" (dict
|
||
|
"page" .
|
||
|
"class" "topbar-button-markdown"
|
||
|
"href" $format.RelPermalink
|
||
|
"icon" "fa-fw fab fa-markdown"
|
||
|
"onwidths" $onwidths
|
||
|
"onwidthm" $onwidthm
|
||
|
"onwidthl" $onwidthl
|
||
|
"hint" (T "Show-Markdown")
|
||
|
)}}
|
||
|
{{- end }}
|
||
|
{{- end }}
|