diff --git a/website/config.rb b/website/config.rb index 464ba1dc4..4dac11e29 100644 --- a/website/config.rb +++ b/website/config.rb @@ -22,6 +22,10 @@ response.body.split("\n").each do |line| $packer_files[os] << filename end +$packer_os = ["darwin", "linux", "windows"] & $packer_files.keys +$packer_os += $packer_files.keys +$packer_os.uniq! + $packer_files.each do |key, value| value.sort! end diff --git a/website/source/downloads.html.erb b/website/source/downloads.html.erb index f1b345d50..71f76884b 100644 --- a/website/source/downloads.html.erb +++ b/website/source/downloads.html.erb @@ -20,14 +20,14 @@ page_title: "Downloads"
- <% $packer_files.each do |os, files| %> + <% $packer_os.each do |os| %>