forked from gjermundgaraba/bjaanes.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
24 lines (22 loc) · 779 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
---
layout: search
---
<div id="search-results"></div>
<script>
window.store = {
{% for post in site.posts %}
"{{ post.url | slugify }}": {
"title": "{{ post.title }}",
"author": "{{ post.author | xml_escape }}",
"category": "{{ post.category | xml_escape }}",
"content": {{ post.content | strip_html | strip_newlines | jsonify }},
"excerpt": {{ post.excerpt | jsonify }},
"url": "{{ post.url | xml_escape }}",
"date": "{{ post.date | date: "%B %-d, %Y" }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
</script>
<script src="/js/lunr.min.js"></script>
<script src="/js/search.js"></script>