generated from fastai/fast_template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch_data.json
More file actions
25 lines (23 loc) · 741 Bytes
/
search_data.json
File metadata and controls
25 lines (23 loc) · 741 Bytes
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
---
---
{% capture json %}
[
{% for pg in site.pages %}
{% if pg.title != nil %}
{
"title" : "{{ pg.title | escape }}",
"url" : "{{ site.url }}{{ pg.url }}"
} ,
{% endif %}
{% endfor %}
{% for doc in site.documents %}
{
"title" : "{{ doc.title | escape }}",
"category" : "{{ doc.categories[0] | xml_escape }}",
{% if site.simple_jekyll_search.fulltext %}"content": {{ doc.content | markdownify | strip_html | replace:'"','' | jsonify | replace:'\n',' ' | replace:' ',' ' | replace:' ',' ' | replace:'\',' ' }},{% endif %}
"url" : "{{ site.url }}{{ doc.url }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]
{% endcapture %}
{{ json | lstrip }}