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