-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
search.json
35 lines (26 loc) · 850 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
31
32
33
34
35
---
layout: null
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title | strip_html | escape }}",
"url" : "{{ post.url }}",
"content" : {{ post.content | strip_html | strip_newline | strip | jsonify }}
},
{% endfor %}
{% for post in site.journals %}
{
"title" : "{{ post.title | strip_html | escape }}",
"url" : "{{ post.url }}",
"content" : {{ post.content | strip_html | strip_newline | strip | jsonify }}
},
{% endfor %}
{% for post in site.notes %}
{
"title" : "{{ post.title | strip_html | escape }}",
"url" : "{{ post.url }}",
"content" : {{ post.content | newline_to_br | strip_newlines | replace: '<br/>', '' | strip | strip_html | strip | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]