blob: 1b16704da5e1e8bbbd08de5ec8d54c8ad858e839 [file] [log] [blame]
---
layout: none
---
[
{% for oem in site.collections %}
{% assign name = oem.label %}
{% case name %}
{% when "faq" %}
{% continue %}
{% when "app" %}
{% continue %}
{% when "terms" %}
{% continue %}
{% when "oem" %}
{% continue %}
{% when "posts" %}
{% continue %}
{% endcase %}
{% for device in site[name] %}
{
"title" : "{{ device.title | escape }} ({{ device.codename }})",
"desc" : "TWRP for {{ device.title | escape }}",
"url" : "{{ device.url }}"
}{% unless lastouterloop == "true" and lastinnerloop == "true" and forloop.rindex == 1 %}, {% endunless %}
{% if forloop.rindex == 1 %}
{% assign lastinnerloop = "true" %}
{% endif %}
{% endfor %}
{% if forloop.rindex == 2 %}
{% assign lastouterloop = "true" %}
{% endif %}
{% endfor %}
]