{{- $block := .block -}} {{- $block_class := partial "GetBlockClass" .block -}} {{- with .block.data -}}
{{ partial "blocks/top.html" (dict "title" $block.title "heading_level" $block.ranks.self "description" .description )}}
    {{- range .files }} {{ if ne .id "" }} {{- $file := partial "GetMedia" .id -}} {{ if $file }}
  • {{- $title := .title -}} {{- if (not $title) }} {{ $title = $file.name }} {{ end -}} {{- $size := partial "GetHumanSize" $file.size -}} {{- $extension := partial "GetExtensionFile" $file.name -}} {{- $extension_with_size := (printf "%.2f %s - %s" $size.weight $size.unit $extension) -}} {{- $title_with_size := printf "%s (%s)" $title $extension_with_size -}} {{- $url := $file.url -}} {{- if site.Params.keycdn -}} {{- $url = $file.direct_url -}} {{- end -}} {{ if $file }}
    {{ $title }}
    {{ $extension }} - {{ $size.weight }} {{ $size.unit }}
    {{ end }}
  • {{ end -}} {{ end -}} {{ end -}}
{{- end -}}