-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
41 lines (41 loc) · 1.31 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
---
layout: null
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title | escape }}",
"category" : "{{ post.category }}",
"tags" : "{{ post.tags | array_to_sentence_string }}",
"url" : "{{ site.baseurl }}{{ post.url }}",
"date" : "{{ post.date | date: "%-d %b, %Y" }}",
"content" : {{ post.content | jsonify}}
} {% unless forloop.last %},{% endunless %}
{% endfor %}
,
{% for page in site.pages %}
{
{% if page.title != null %}
"title" : "{{ page.title | escape }}",
"category" : "{{ page.category }}",
"tags" : "{{ page.tags | join: ', ' }}",
"url" : "{{ site.baseurl }}{{ page.url }}",
"date" : "{{ page.date | date: "%-d %b, %Y" }}",
"content" : {{ page.content | jsonify }}
{% endif %}
} {% unless forloop.last %},{% endunless %}
{% endfor %}
,
{% for doc in site.docs %}
{
{% if doc.title != null %}
"title" : "{{ doc.title | escape }}",
"category" : "{{ doc.category }}",
"tags" : "{{ doc.tags | join: ', ' }}",
"url" : "{{ site.baseurl }}{{ doc.url }}",
"date" : "{{ doc.date | date: "%-d %b, %Y" }}",
"content" : {{ doc.content | jsonify }}
{% endif %}
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]