forked from hotosm/hotosm-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
38 lines (37 loc) · 1.06 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
---
layout:
---
[
{% for project in site.projects %}
{
"type":"Project",
"title":"{{ project.title | escape }}",
"summary":"{{ project['Summary Text'] | escape | truncatewords: 40 | prepend: ' ' }}",
"subtitle":"{{project['HOT Involvement'] | escape | prepend: ' ' }}",
"url":"{{ site.url }}{{ project.url }}",
"date":"{{ project.date }}",
"country":"{{ project.Country | join: ', ' }}"
},
{% endfor %}
{% for person in site.people %}
{
"type":"Member",
"title":"{{ person.title | escape }}",
"summary":"{{ person.body | escape | truncatewords: 40 | prepend: ' ' }}",
"subtitle":"{{ person['Job Title'] | prepend: ' ' }}",
"url":"{{ site.url }}{{ person.url }}",
"date":"{{ person.date }}",
"country":"{{ project.country | join: ', ' }}"
},
{% endfor %}
{% for post in site.posts %}
{
"type":"News",
"title":"{{ post.title | escape }}",
"summary":"{{ post['Summary Text'] | escape | truncatewords: 40 | prepend: ' ' }}",
"subtitle":"{{ post.Person | join: ', ' }}",
"url":"{{ site.url }}{{ post.url }}",
"date":"{{ post.date }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]