blob: 592938b048a22a96bbb9a8fb3b8d08d7e4e3c1a9 [file] [log] [blame]
bigbiffd006b302015-03-06 18:36:03 -05001---
2layout: none
3---
4[
bigbiff bigbiff791879d2017-08-27 14:40:00 -04005 {% 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 bigbiff8abc4da2017-09-01 19:59:09 -040016 {% when "posts" %}
17 {% continue %}
bigbiff bigbiff791879d2017-08-27 14:40:00 -040018 {% 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 }}"
24 }{% unless lastouterloop == "true" and lastinnerloop == "true" and forloop.rindex == 1 %}, {% endunless %}
25 {% if forloop.rindex == 1 %}
26 {% assign lastinnerloop = "true" %}
27 {% endif %}
28 {% endfor %}
29 {% if forloop.rindex == 2 %}
30 {% assign lastouterloop = "true" %}
31 {% endif %}
bigbiffd006b302015-03-06 18:36:03 -050032 {% endfor %}
33]