{{- $template := .block.template -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- with .block.data -}} {{- $figures := .figures }}
{{- if (or $title .description) }}
{{- if not $title -}} {{ partial "blocks/default_title.html" $template }} {{ else }}

{{ partial "PrepareHTML" $title }}

{{ end -}} {{- if .description }}
{{ partial "PrepareHTML" .description }}
{{ end -}}
{{ end -}} {{ if $figures }} {{ $list_class := "odd-items" }} {{ if (modBool (len $figures) 2) }} {{ $list_class = "even-items" }} {{ end }}
    {{- range .figures }}
  • {{ .number }}{{ partial "PrepareHTML" .unit }}
    {{ partial "PrepareHTML" .description }}
  • {{ end -}}
{{ end -}}
{{- end -}}