{{ define "main" }}
{{ $selected := false }}
{{ with .Params.download_os }}{{ $selected = index (where hugo.Data.download_page.platforms "id" .) 0 }}{{ end }}
{{ partial "downloads/view.html" (dict "platform" $selected) }}
{{ range hugo.Data.download_page.platforms }}
{{ partial "downloads/view.html" (dict "platform" .) }}
{{ end }}
{{ partial "downloads/view.html" (dict "platform" false) }}
{{ end }}