bigbiff | d006b30 | 2015-03-06 18:36:03 -0500 | [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 | "desc" : "TWRP for {{ device.title | escape }}", |
| 23 | "url" : "{{ device.url }}" |
bigbiff | e306993 | 2022-03-12 23:39:33 +0000 | [diff] [blame^] | 24 | }{% unless lastouterloop == "true" and lastinnerloop == "true" and forloop.rindex == 1 %}, {% endunless %} |
bigbiff bigbiff | 791879d | 2017-08-27 14:40:00 -0400 | [diff] [blame] | 25 | {% if forloop.rindex == 1 %} |
| 26 | {% assign lastinnerloop = "true" %} |
| 27 | {% endif %} |
| 28 | {% endfor %} |
| 29 | {% if forloop.rindex == 2 %} |
| 30 | {% assign lastouterloop = "true" %} |
| 31 | {% endif %} |
bigbiff | d006b30 | 2015-03-06 18:36:03 -0500 | [diff] [blame] | 32 | {% endfor %} |
| 33 | ] |