-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.json
30 lines (30 loc) · 925 Bytes
/
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
---
---
{
{%- for post in site.portfolio -%}
"{{post.title}}": {
"title": "{{post.title}}",
"description": "{{post.description | strip_html | strip_newlines }}",
{%- if post.audience -%}
"client-email": "{{post.audience}}",
{%- endif -%}
"current-url": "{{post.current-url}}"
{%- if post.dev-url -%}
,"dev-url": "{{post.dev-url}}"
{%- endif -%}
{%- if post.Launched -%}
,"Launched": "{{post.Launched}}"
{%- endif -%}
{%- if post.audience -%}
,"audience": "{{post.audience}}"
{%- endif -%}
{%- if post.developers -%}
,"developers": [
{%- for developer in post.developers -%}
"{{developer}}"{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
]
{%- endif -%}
}{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
}