generated from fastai/fastpages
-
Notifications
You must be signed in to change notification settings - Fork 32
/
search-data.json
32 lines (31 loc) · 1.85 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
---
---
{
{% assign comma = false %}
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{% for post in site.posts %}
{% if post.search_exclude != true %}
{% if comma == true%},{% endif %}"post{{ forloop.index0 }}": {
"title": "{{ post.title | replace: '&', '&' }}",
"content": "{{ post.content | markdownify | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '</ul', ' . </ul' | replace: '</tr', ' . </tr' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | strip_html | escape_once | remove: 'Table of contents' | remove: '```' | remove: '---' | replace: '\', ' ' | replace: ' . . . ', ' . ' | replace: ' . . ', ' . ' | normalize_whitespace }}",
"url": "{{ post.url | absolute_url }}",
"relUrl": "{{ post.url }}",
"date": " • {{ post.date | date: date_format }}"
}
{% assign comma = true %}
{% endif %}
{% endfor %}
{% for page in site.pages %}
{% if page.url contains '.xml' or page.url contains 'assets'%}
{% elsif page.search_exclude != true %}
{% if comma == true%},{% endif %}"page{{ forloop.index0 }}": {
"title": "{{ page.title | replace: '&', '&' }}",
"content": "{{ page.content | markdownify | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '</ul', ' . </ul' | replace: '</tr', ' . </tr' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | strip_html | escape_once | remove: 'Table of contents' | remove: '```' | remove: '---' | replace: '\', ' ' | replace: ' . . . ', ' . ' | replace: ' . . ', ' . ' | normalize_whitespace }}",
"url": "{{ page.url | absolute_url }}",
"relUrl": "{{ page.url }}",
"date": ""
}
{% assign comma = true %}
{% endif %}
{% endfor %}
}