forked from hotosm/hotosm-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.json
121 lines (118 loc) · 3.62 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
layout:
---
{% assign current_date = site.time | date: '%Y%m%d' %}
[
{% for project in site.projects %}
{
"type":"Project",
"title":"{{ project.title | escape }}",
"summary":"{{ project['Summary Text'] | escape | truncatewords: 40 | strip | prepend: ' ' }}",
"subtitle":"{{project['HOT Involvement'] | escape | prepend: ' ' }}",
"url":"{{ project.url }}",
"date":"{{ project.date }}",
"country":"{{ project.Country | join: ', ' }}"
},
{% endfor %}
{% for impact in site.impact-areas %}
{
"type":"Impact Area",
"title":"{{ impact.title | escape }}",
"subtitle": " ",
"summary":"{{ impact.body | escape | truncatewords: 40 | strip | prepend: ' ' }}",
"url":"{{ impact.url }}"
},
{% endfor %}
{% for groups in site.working-groups %}
{
"type":"Working Groups",
"title":"{{ groups.title | escape }}",
"subtitle": " ",
"summary":"{{ groups.body | escape | truncatewords: 40 | strip | strip_newlines | prepend: ' ' }}",
"url":"{{ groups.url }}"
},
{% endfor %}
{% for person in site.people %}
{
"type":"Member",
"title":"{{ person.title | escape }}",
"summary":"{{ person.body | escape | truncatewords: 40 | strip | prepend: ' ' }}",
"subtitle":"{{ person['Job Title'] | prepend: ' ' }}",
"url":"{{ person.url }}",
"date":"{{ person.date }}",
"country":"{{ project.country | join: ', ' }}"
},
{% endfor %}
{% for post in site.annual-reports reversed %}
{
"type":"Annual Reports",
"title":"{{ post.title | escape }}",
"summary":"{{ post.content | strip_html | escape | truncatewords: 40 | strip | remove: "\" | prepend: ' ' }}",
"subtitle":" ",
"url":"{{ post.url }}",
"date":"{{ post.date }}"
},
{% endfor %}
{% for post in site.posts %}
{
"type":"News",
"title":"{{ post.title | escape }}",
"summary":"{{ post['Summary Text'] | escape | truncatewords: 40 | strip | strip_html | remove: "\" | prepend: ' ' }}",
"subtitle":"{{ post.Person | join: ', ' | prepend: ' '}}",
"url":"{{ post.url }}",
"date":"{{ post.date }}"
},
{% endfor %}
{% for post in site.tech-updates %}
{
"type":"Tech Updates",
"title":"{{ post.title | escape }}",
"summary":"{{ post['Summary Text'] | escape | truncatewords: 40 | strip | strip_html | remove: "\" | prepend: ' ' }}",
"subtitle":"{{ post.Person | join: ', ' | prepend: ' '}}",
"url":"{{ post.url }}",
"date":"{{ post.date }}"
},
{% endfor %}
{% for rfp in site.rfps %}
{% assign rfp_date = rfp['Deadline Date'] | date: '%Y%m%d' %}
{% if rfp_date >= current_date %}
{
"type":"RFPs",
"title":"{{ rfp.title | escape }}",
"summary":"{{ rfp.content | escape | truncatewords: 40 | strip | strip_html | remove: "\" | prepend: ' ' }}",
"subtitle":"{{ rfp['Deadline Date'] | prepend: ' '}}",
"url":"{{ rfp.url }}",
"date":"{{ rfp.date }}"
},
{% endif %}{% endfor %}
{% for opp in site.volunteer-opportunities %}
{% assign opp_date = opp['Deadline Date'] | date: '%Y%m%d' %}
{% if opp_date >= current_date %}
{
"type":"Volunteer Opportunities",
"title":"{{ opp.title | escape }}",
"summary":"{{ opp.content | escape | truncatewords: 40 | strip | strip_html | remove: "\" | prepend: ' ' }}",
"subtitle":"{{ opp['Deadline Date'] | prepend: ' '}}",
"url":"{{ opp.url }}",
"date":"{{ opp.date }}",
"country": "{{ opp['Place of Work'] }}"
},
{% endif %}{% endfor %}
{% for event in site.disaster-services %}
{
"type": "Event",
"title": "{{ event.title | escape }}",
"summary":"{{ event['Summary Text'] | escape | truncatewords : 40 | strip | strip_newlines | prepend: ' ' }}",
"subtitle":"Event Type: {{ event['Event type'] }}",
"url":"{{ event.url }}",
"date":"{{ event.date }}"
},
{% endfor %}
{
"type": "Page",
"title": "HOT Activation Protocol",
"summary":"Download the HOT Activation Protocol. ",
"subtitle":" ",
"url":"https://www.hotosm.org/hot-activation-protocol.html"
}
]