{{- $class := "page" -}} {{- $custom_class := "" -}} {{- $heading := .Scratch.Get "heading" | default "h2" -}} {{- if .Params.bodyclass -}} {{ $class = printf "%s page-%s" $class .Params.bodyclass }} {{- end -}} {{- if .Scratch.Get "class" -}} {{ $custom_class = .Scratch.Get "class" }} {{ $class = printf "%s %s" $class $custom_class }} {{- end -}}
{{- partial "PrepareHTML" (printf "<%s class='title'>" $heading) -}} {{- partial "PrepareHTML" .Title -}} {{- partial "PrepareHTML" (printf "" $heading) -}} {{- if .Scratch.Get "show_description" }} {{- if .Params.description_short }}

{{ partial "PrepareHTML" .Params.description_short }}

{{ end -}} {{ end -}} {{- if .Scratch.Get "show_more" }}

{{- i18n "commons.more" -}}

{{ end -}}
{{ if .Scratch.Get "show_image" }} {{- partial "pages/page-media.html" . -}} {{- end }}