-
Notifications
You must be signed in to change notification settings - Fork 13
/
datasets.json
23 lines (22 loc) · 950 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
---
---
[{% for dataset in site.datasets %}
{
"title": {{ dataset.title | jsonify }},
"organization": {{ dataset.organization | jsonify }}{% if dataset.notes != "" %},
"notes": {{ dataset.notes | jsonify }}{% endif %}{% if dataset.category != "" %},
"category": {{ dataset.category | jsonify }}{% endif %},
"url": "{{ site.baseurl }}{{ dataset.url }}",
"resources": {{dataset.resources | jsonify}},
{% if site.data.licenses[dataset.license] == null %}
"licence": "{{dataset.license}}",
{% else %}
"licence": "{{site.data.licenses[dataset.license]}}",
{% endif %}
"date_created": "{{dataset.date_created}}",
"date_updated": "{{dataset.date_updated}}",
{% assign org = site.organizations | find: "title", dataset.organization %}
"org_type": "{{ org.type }}",
"original_dataset_link": "{{ dataset.original_dataset_link }}"
}{% unless forloop.last %},{% endunless %}{% endfor %}
]