-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsearch_data.html
61 lines (59 loc) · 2.37 KB
/
search_data.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
layout: null
---
{
{% assign blog_cnt = 0 %}
{% for post in site.blogs %}
{% assign blog_cnt = blog_cnt | plus: 1 %}
{% if post.position == "hidden" %}
"#": {}
{% unless forloop.last %},{% endunless %}
{% else %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"content": {{ post.content | strip_newlines | strip_html | replace: '"', '~' | replace: ':', '#' | jsonify | strip}},
"url": "{{ post.url | xml_escape }}",
"author": "{{ post.author | xml_escape }}",
"tags": "{% for tag in post.tags %}{{ tag }}{% unless forloop.last %}, {% endunless %}{% endfor %}"
}
{% endif %}
{% unless forloop.last %}{% unless post.position == "hidden" %},{% endunless %}{% endunless %}
{% endfor %}
{% unless blog_cnt == 0 %},{% endunless %}
{% assign techdoc_cnt = 0 %}
{% for post in site.techdocs %}
{% assign techdoc_cnt = techdoc_cnt | plus: 1 %}
{% if post.position == "hidden" %}
"#": {}
{% unless forloop.last %},{% endunless %}
{% else %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"content": {{ post.content | strip_newlines | strip_html | replace: '"', '~' | replace: ':', '#' | jsonify | strip}},
"url": "{{ post.url | xml_escape }}",
"tags": "{% for tag in post.tags %}{{ tag }}{% unless forloop.last %}, {% endunless %}{% endfor %}"
}
{% endif %}
{% unless forloop.last %}{% unless post.position == "hidden" %},{% endunless %}{% endunless %}
{% endfor %}
{% unless techdoc_cnt == 0 %},{% endunless %}
{% assign tutorial_cnt = 0 %}
{% for post in site.tutorials %}
{% assign tutorial_cnt = tutorial_cnt | plus: 1 %}
{% if post.position == "hidden" %}
"#": {}
{% unless forloop.last %},{% endunless %}
{% else %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"content": {{ post.content | strip_newlines | strip_html | replace: '"', '~' | replace: ':', '#' | jsonify | strip }},
"url": "{{ post.url | xml_escape }}",
"author": "{{ post.author | xml_escape }}",
"tags": "{% for tag in post.tags %}{{ tag }}{% unless forloop.last %}, {% endunless %}{% endfor %}"
}
{% endif %}
{% unless forloop.last %}{% unless post.position == "hidden" %},{% endunless %}{% endunless %}
{% endfor %}
{% unless tutorial_cnt == 0 %},{% endunless %}
"#": {}
}