{{ $url := .Get 0 }} {{ $files := getJSON $url }} {{ with .Page.Params.downloads }}

Downloads

{{ range . }} {{ $filename := index (split .url "/") (sub (len (split .url "/")) 1) }} {{ $record := where $files "name" $filename | first 1 }} {{ $target := .target }} {{ range $record }} {{ else }} {{ end }} {{ end }}
{{ $target }} {{ .name }} ({{ printf "%.2f" (div .size 1e6) }} MiB)
{{ .target }} {{ .name }}
{{ end }}