forked from okestonia/opendata.riik.ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasets.json
26 lines (25 loc) · 1007 Bytes
/
datasets.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
---
---
[{% for dataset in site.datasets %}
{
"title": {{ dataset.title | jsonify }},
"title_en": {{ dataset.title_en | jsonify }},
"organization": {{ dataset.organization | jsonify }}{% if dataset.notes != "" %},
"notes": {{ dataset.notes | jsonify }}{% endif %}{% if dataset.category != "" %},
"notes_en": {{ dataset.notes_en | jsonify }}{% endif %}{% if dataset.category != "" %},
"category": {{ dataset.category | jsonify }}{% endif %}{% if dataset.category_en != "" %},
"category_en": {{ dataset.category_en | jsonify }}{% endif %},
"url": "{{ site.baseurl }}{{ dataset.url }}",
"url_en": "/en{{ site.baseurl }}{{ dataset.url }}",
"resources": [
{% for resource in dataset.resources %}
{
"name" : "{{ resource.name }}",
"url": "{{ resource.url }}",
"format": "{{ resource.format }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}{% unless forloop.last %},{% endunless %}{% endfor %}
]