forked from bavc/avaa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
32 lines (28 loc) · 945 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
28
29
30
31
32
---
layout: page
---
<h1 class="search-results-header">Search Results</h1>
<div>
<form action="{{ site.baseurl }}/search.html" method="get">
<input type="text" id="search-box" class="search-box" name="query">
<input type="submit" class="search-button" value="search">
</form>
</div>
<ul id="search-results"></ul>
<script>
window.store = {
{% for post in site.artifacts %}
"{{ post.url | slugify }}": {
"title": "{{ post.title }}",
"namevar": {{ post.namevar | jsonify }},
"categories": {{ post.categories | jsonify }},
"tags": {{ post.tags | jsonify }},
"content": {{ post.content | strip_html | strip_newlines | jsonify }},
"url": "{{ site.baseurl }}{{ post.url }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
</script>
<script src="{{ site.baseurl }}/js/lunr.min.js"></script>
<script src="{{ site.baseurl }}/js/search.js"></script>