forked from ma7dev/__sudomaze.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
42 lines (32 loc) · 1.06 KB
/
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
36
37
38
39
40
41
42
---
---
[
{% 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.publications %}
{
"title" : "{{ post.title | strip_html | escape }}",
"url" : "{{ post.url }}",
"content" : {{ post.content | strip_html | strip_newline | strip | jsonify }}
},
{% endfor %}
{% for post in site.projects %}
{
"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 %}
]