-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
28 lines (25 loc) · 811 Bytes
/
search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
layout: none
---
{% if page.console == "3ds" %}
{% assign apps = site.data.apps | where:"console", "3ds" %}
{% elsif page.console == "switch" %}
{% assign apps = site.data.apps | where:"console", "switch" %}
{% elsif page.console == "nds" %}
{% assign apps = site.data.apps | where:"console", "nds" %}
{% else %}
{% assign apps = site.data.apps %}
{% endif %}
[
{% for app in apps %}
{
"name" : "{{ app.name | escape }}",
"categories" : "{{ app.categories }}",
"version" : "{{ app.version }}",
"description" : "{{ app.description | escape }}",
"url" : "{{ site.baseurl }}{{ app.url }}",
"update_time" : "{{ app.update_time }}",
"titleid" : "{{ app.titleid }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]