{{- $template := .block.template -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- with .block.data -}} {{- $features := .elements }}
{{- 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 $features }}
    {{- range $features }}
  • {{ partial "PrepareText" .title }}

    {{ partial "PrepareText" .description }}

    {{- if .image -}}
    {{- partial "commons/image.html" (dict "image" .image "alt" .alt "sizes" site.Params.image_sizes.blocks.features ) -}} {{- if .credit -}}
    {{ partial "PrepareHTML" .credit }}
    {{- end -}}
    {{- end -}}
  • {{ end -}}
{{ end -}}
{{ end }}