Ethan Yonker | 5987fc1 | 2016-12-16 09:55:13 -0600 | [diff] [blame] | 1 | --- |
| 2 | layout: none |
| 3 | --- |
| 4 | [ |
bigbiff bigbiff | 791879d | 2017-08-27 14:40:00 -0400 | [diff] [blame] | 5 | {% for oem in site.collections %} |
| 6 | {% assign name = oem.label %} |
| 7 | {% case name %} |
| 8 | {% when "faq" %} |
| 9 | {% continue %} |
| 10 | {% when "app" %} |
| 11 | {% continue %} |
| 12 | {% when "terms" %} |
| 13 | {% continue %} |
| 14 | {% when "oem" %} |
| 15 | {% continue %} |
| 16 | {% endcase %} |
| 17 | {% for device in site[name] %} |
| 18 | { |
| 19 | "title" : "{{ device.title | escape }} -- {{ device.codename }}", |
| 20 | "url" : "{{ device.url }}", |
| 21 | "dlfolder" : "{{ device.downloadfolder }}", |
| 22 | "recovery" : "{{ device.ddof }}" |
| 23 | }{% unless lastouterloop == "true" and lastinnerloop == "true" and forloop.rindex == 1 %}, {% endunless %} |
| 24 | {% if forloop.rindex == 1 %} |
| 25 | {% assign lastinnerloop = "true" %} |
| 26 | {% endif %} |
| 27 | {% endfor %} |
| 28 | {% if forloop.rindex == 2 %} |
| 29 | {% assign lastouterloop = "true" %} |
| 30 | {% endif %} |
Ethan Yonker | 5987fc1 | 2016-12-16 09:55:13 -0600 | [diff] [blame] | 31 | {% endfor %} |
bigbiff bigbiff | 791879d | 2017-08-27 14:40:00 -0400 | [diff] [blame] | 32 | |
Ethan Yonker | 5987fc1 | 2016-12-16 09:55:13 -0600 | [diff] [blame] | 33 | ] |