forked from SEDSCelestiaBPGC/WanderingStar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
31 lines (27 loc) · 743 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
---
layout: default
title: Search
---
<section class="mx-5 px-5 py-2">
<h2 id="search-title"></h2>
<ul id="search-results"></ul>
<script>
window.store = {
{% for post in site.posts %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"content": `
{{ post.content | strip_html
| newline_to_br | strip_newlines
| replace: '<br /><br />', ' | '
| replace: '<br />', ' > '
| jsonify }}`,
"url": "{{ post.url | xml_escape }}"
}
{% unless forloop.last %}, {% endunless %}
{% endfor %}
};
</script>
<script src="/assets/js/lunr.min.js"></script>
<script src="/assets/js/search.js"></script>
</section>