-
Notifications
You must be signed in to change notification settings - Fork 73
/
SearchData.json
17 lines (14 loc) · 1 KB
/
SearchData.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
permalink: /SearchData.json
---
{
{%- assign i = 0 -%}
{%- for note in site.notes -%}
"{{ i }}": {
"doc": {{ note.title | strip_html | escape | jsonify }},
"title": {{ note.title | strip_html | escape | jsonify }},
"content": {{ note.content | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '<ul', ' . <ul' | replace: '</ul', ' . </ul' | replace: '<ol', ' . <ol' | replace: '</ol', ' . </ol' | replace: '</tr', ' . </tr' | replace: '<li', ' | <li' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | replace: '<td', ' | <td' | replace: '</th', ' | </th' | replace: '<th', ' | <th' | strip_html | remove: 'Table of contents' | normalize_whitespace | replace: '. . .', '.' | replace: '. .', '.' | replace: '| |', '|' | append: ' ' | strip_html | strip_newline | strip | escape | jsonify }},
"url": "{{ site.baseurl }}{{ note.url }}"
}{%- unless forloop.last -%},{%- endunless -%}{%- assign i = i | plus: 1 -%}
{% endfor %}
}