forked from 18F/cv_faq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
27 lines (27 loc) · 1001 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
---
layout: null
---
[
{% for content in site.content %}
{
"title" : "{{ content.title | escape }}",
"desc" : "{{ content.slug }}",
"category" : "{{ content.category }}",
"excerpt" : "{{ content.excerpt | strip_html | strip }}",
"url" : "{{ site.baseurl }}/{{ content.category | downcase }}/{{ content.slug | downcase }}/",
"date" : "{{ content.date }}",
"content" : "{{ content.content | strip_html | strip_newlines | remove_chars | escape }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
,
{% for category in site.categories %}
{
"title" : "{{ category.title | escape }}",
"desc" : "{{ category.slug }}",
"name" : "{{ category.name }}",
"url" : "{{ site.baseurl }}/{{ category.name | downcase }}/",
"heading" : "{{ category.banner.heading }}",
"content" : "{{ category.banner.content }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]