-
Notifications
You must be signed in to change notification settings - Fork 3
/
search.html
27 lines (25 loc) · 1003 Bytes
/
search.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
---
layout: default
---
<ul id="search-results"></ul>
<script>
window.store = {
{% for collection in site.collections %}
{% assign collectionName = collection.label %}
{% unless collectionName == "posts" %}
{% for page in site.[collectionName] %}
"{{ page.url | slugify }}": {
"title": "{{ page.title | xml_escape }}",
"category": "{{ page.category | xml_escape }}",
"ring": "{{ page.ring | xml_escape }}",
"content": {{ page.content | strip_html | strip_newlines | jsonify }},
"url": "{{ site.baseurl }}/{{ page.url | xml_escape }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
{% unless forloop.last %},{% endunless %}
{% endunless %}
{% endfor %}
}
</script>
<script src="{{ site.baseurl }}/assets/js/lunr.js"></script>
<script src="{{ site.baseurl }}/assets/js/search.js"></script>