{{ $volume := .volume }} {{ $heading := .heading | default "h2" }} {{ $heading_tag := (dict "open" ((printf "<%s class='volume-title'>" $heading) | safeHTML) "close" ((printf "" $heading) | safeHTML) ) }} {{ with $volume }}

{{ i18n "volumes.volume_number" (dict "Number" .Params.Number) }}

{{ $heading_tag.open }} {{ partial "PrepareHTML" .Title }} {{ $heading_tag.close }}
{{- if .Params.image -}} {{- partial "commons/image.html" (dict "image" .Params.image "alt" .Title "sizes" site.Params.image_sizes.sections.volumes.item ) -}} {{- else -}} {{- partial "commons/image-default.html" "volumes" -}} {{- end -}}
{{ end }}