-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsearch.json
More file actions
41 lines (41 loc) · 1.9 KB
/
search.json
File metadata and controls
41 lines (41 loc) · 1.9 KB
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
---
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title | strip_html | escape }}",
"url" : "{{ site.baseurl }}{{ post.url }}",
"category" : "{{ post.categories | join: ', ' }}",
"tags" : "{{ post.tags | join: ', ' }}",
"date" : "{{ post.date }}",
"authors" : "{{ post.authors }}",
"content" : "{{ post.content | strip_html | stript_newlines | normalize_whitespace | remove: '\' | remove: '-' | remove_chars | escape }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %},
{% for page in site.pages %}
{
{% if page.title != nil %}
"title" : "{{ page.title | strip_html | escape }}",
"url" : "{{ site.baseurl }}{{ page.url }}",
"category" : "{{ page.categories | join: ', ' }}",
"tags" : "{{ page.tags | join: ', ' }}",
"date" : "{{ page.date }}",
"authors" : "{{ page.authors }}",
"content" : "{{ page.content | strip_html | stript_newlines | normalize_whitespace | remove: '\' | remove: '-' | remove_chars | escape }}"
{% endif %}
}{% unless forloop.last %},{% endunless %}
{% endfor %},
{% for attractor in site.attractors %}
{
{% if attractor.title != nil %}
"title" : "{{ attractor.title | replace: ' ', '-' | append: ' Attractor' | strip_html | escape }}",
"url" : "{{ site.baseurl }}{{ attractor.url }}",
"category" : "{{ attractor.categories | join: ', ' }}",
"tags" : "{{ attractor.tags | join: ', ' }}",
"date" : "{{ attractor.date }}",
"authors" : "{{ attractor.authors }}",
"content" : "{{ attractor.content | strip_html | stript_newlines | normalize_whitespace | remove: '\' | remove: '-' | remove_chars | escape }}"
{% endif %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]