generated from Jekyll-Garden/jekyll-garden.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SearchData.json
20 lines (17 loc) · 1.18 KB
/
SearchData.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
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 }}",
{% if note.tags %}
"tags": {{ note.tags | jsonify }}{% endif %}{% if note.summary %},
"summary": {{ note.summary | strip_html | escape | jsonify }}{% endif %}
}{%- unless forloop.last -%},{%- endunless -%}{%- assign i = i | plus: 1 -%}
{% endfor %}
}