forked from swissup/swissup.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.json
More file actions
30 lines (29 loc) · 1.1 KB
/
search.json
File metadata and controls
30 lines (29 loc) · 1.1 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
---
---
[
{% for page in site.pages %}
{%- if page.title == nil or page.exclude_from_search -%}{% continue %}{%- endif -%}
{
"id" : "{% increment variable %}",
"title" : "{{ page.title | escape }}",
"description": "{{ page.description | escape | strip_newlines }}",
"keywords" : "{{ page.keywords | escape | strip_newlines }}",
"searchterms": "{{ page.searchterms | escape | strip_newlines }}",
"category" : "{{ page.category | escape }}",
"url" : "{{ page.url | prepend: site.baseurl }}"
},
{% endfor %}
{}
{% for page in site.posts %}
,{
{% if page.title != nil and page.exclude_from_search == nil %}
"id" : "{% increment variable %}",
"title" : "{{ page.title | escape }}",
"description": "{{ page.description | escape | strip_newlines }}",
"keywords" : "{{ page.keywords | escape | strip_newlines }}",
"searchterms": "{{ page.searchterms | escape | strip_newlines }}",
"url" : "{{ page.url | prepend: site.baseurl }}"
{% endif %}
}
{% endfor %}
]