-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.json
44 lines (39 loc) · 947 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
36
37
38
39
40
41
42
43
44
---
title: search
layout: none
search: exclude
---
[
{% for page in site.pages %}
{% unless page.search == "exclude" %}
{
"title": "{{ page.title | escape }}",
"tags": "{{ page.tags }}",
"keywords": "{{page.keywords}}",
"url": "{{ site.baseurl }}{{ page.url }}",
"summary": "{{page.summary | strip }}"
},
{% endunless %}
{% endfor %}
{% for post in site.posts %}
{
"title": "{{ post.title | escape }}",
"tags": "{{ post.tags }}",
"keywords": "{{post.keywords}}",
"url": "{{ site.baseurl }}{{ post.url }}",
"summary": "{{post.summary | strip }}"
},
{% unless forloop.last %},{% endunless %}
{% endfor %}
{% assign entries = site.docs | sort: "number" %}
{% for entry in entries %}
{
"title": "{{ entry.title | escape }}",
"tags": "{{ entry.tags }}",
"keywords": "{{ entry.keywords }}",
"url": "{{ site.baseurl }}docs#{{ entry.sectionid }}",
"summary": "{{ page.summary | strip }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
]