{{- $block := .block -}} {{- $block_class := partial "GetBlockClass" .block -}} {{- with .block.data -}} {{- $features := .elements }}
{{ partial "blocks/top.html" $block.top }} {{ if $features }}
    {{- range $features }}
  • {{ if or .title .description }}
    {{ with .title }} {{- $heading_tag := partial "GetHeadingTag" (dict "level" $block.ranks.children "attributes" "class='name'" ) -}} {{ $heading_tag.open -}} {{ . | safeHTML }} {{ $heading_tag.close -}} {{ end }} {{ with .description }}
    {{ partial "PrepareHTML" . }}
    {{ end }}
    {{ end }} {{- 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 }}