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 %} |
bigbiff bigbiff | 8abc4da | 2017-09-01 19:59:09 -0400 | [diff] [blame] | 16 | {% when "posts" %} |
| 17 | {% continue %} |
bigbiff bigbiff | 791879d | 2017-08-27 14:40:00 -0400 | [diff] [blame] | 18 | {% endcase %} |
| 19 | {% for device in site[name] %} |
| 20 | { |
| 21 | "title" : "{{ device.title | escape }} -- {{ device.codename }}", |
| 22 | "url" : "{{ device.url }}", |
| 23 | "dlfolder" : "{{ device.downloadfolder }}", |
| 24 | "recovery" : "{{ device.ddof }}" |
| 25 | }{% unless lastouterloop == "true" and lastinnerloop == "true" and forloop.rindex == 1 %}, {% endunless %} |
| 26 | {% if forloop.rindex == 1 %} |
| 27 | {% assign lastinnerloop = "true" %} |
| 28 | {% endif %} |
| 29 | {% endfor %} |
| 30 | {% if forloop.rindex == 2 %} |
| 31 | {% assign lastouterloop = "true" %} |
| 32 | {% endif %} |
Ethan Yonker | 5987fc1 | 2016-12-16 09:55:13 -0600 | [diff] [blame] | 33 | {% endfor %} |
bigbiff bigbiff | 791879d | 2017-08-27 14:40:00 -0400 | [diff] [blame] | 34 | |
Ethan Yonker | 5987fc1 | 2016-12-16 09:55:13 -0600 | [diff] [blame] | 35 | ] |