-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnational-orgs.json
33 lines (33 loc) · 1.09 KB
/
national-orgs.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
29
30
31
32
33
---
permalink: json/national-orgs.json
---
[
{% for org in site.categories.national %}{
{% if org.description %}
{% capture org_content %}{{ org.description | strip_html | strip_newlines | escape | truncate }}{% endcapture %}
{% elsif org.mission %}
{% capture org_content %}{{ org.mission | strip_html | strip_newlines | escape | truncate }}{% endcapture %}
{% else %}
{% capture org_content %}<em>No description</em>{% endcapture %}
{% endif %}
"title": "{{ org.title }}",
"url": "{{ site.domain }}{{ org.url }}",
"city": "{{ org.city }}",
"state": "{{ org.state }}",
"content" : "{{ org_content }}",
"impact_area": {
"name" : "{{ org.impact_area }}",
"id" : "{{ site.data.impact_areas[org.impact_area].id }}",
"class" : "{{ site.data.impact_areas[org.impact_area].class }}"
},
"keywords" : [
{% for keyword in org.keywords %}
{
"name" : "{{ keyword }}",
"id" : "{{ site.data.keywords[keyword].id }}"
}{% unless forloop.last %}, {% endunless %}
{% endfor %}
]
}{% unless forloop.last %}, {% endunless %}
{% endfor %}
]