-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_data.json
31 lines (31 loc) · 1.24 KB
/
search_data.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
---
layout: null
---
{
{% for post in site.pages %}
{% if post.url %}
"{{ post.url | slugify }}": {
"title": "{% if post.title %}{{ post.title | xml_escape }}{% else %}[blank]{% endif %}",
"content" : "{{post.content | strip_html | strip_newlines | remove: " " | escape | remove: "\"}}",
"url": " {{ post.url | xml_escape }}",
"author": "{{ post.author | xml_escape }}",
"categories": "{% for category in post.categories %}{{ category }}{% unless forloop.last %}, {% endunless %}{% endfor %}",
"collection": "{{ post.collection }}"
}
,
{% endif %}
{% endfor %}
{% for post in site.documents %}
{% if post.url %}
"{{ post.url | slugify }}": {
"title": "{% if post.title %}{{ post.title | xml_escape }}{% else %}[blank]{% endif %}",
"content" : "{{post.content | strip_html | strip_newlines | remove: " " | escape | remove: "\"}}",
"url": " {{ post.url | xml_escape }}",
"author": "{{ post.author | xml_escape }}",
"categories": "{% for category in post.categories %}{{ category }}{% unless forloop.last %}, {% endunless %}{% endfor %}",
"collection": "{{ post.collection }}"
}
{% unless forloop.last %},{% endunless %}
{% endif %}
{% endfor %}
}