-
Notifications
You must be signed in to change notification settings - Fork 75
/
search_data.json
32 lines (32 loc) · 1.19 KB
/
search_data.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
---
layout: null
nav_exclude: true
search_exclude: true
---
{
{%- for site_page in site.pages %}
{%- unless site_page.search_exclude == true %}
"{{ site_page.url | slugify }}": {
"title": "{{ site_page.title | xml_escape }}",
"content": {{site_page.content | markdownify | newline_to_br | replace: '<br />', ' ' | strip_html | normalize_whitespace | jsonify }},
"url": " {{ site_page.url | xml_escape }}",
"author": "{{ site_page.author | xml_escape }}"
},
{%- endunless %}
{%- endfor %}
{%- for site_post in site.posts %}
{%- unless site_page.search_exclude == true %}
"{{ site_post.url | slugify }}": {
"title": "{{ site_post.title | xml_escape }}",
"content": {{site_post.content | markdownify | newline_to_br | replace: '<br />', ' ' | strip_html | normalize_whitespace | jsonify }},
"url": " {{ site_post.url | xml_escape }}",
"author": "{{ site_post.author | xml_escape }}"
}{%- unless forloop.last %},{%- endunless %}
{%- endunless %}
{%- else %}
{%- comment %} Dirty trick: There is a comma at the end of the sites loop, so we need at least one entry after {% endcomment %}
".": {
".": "."
}
{%- endfor %}
}