-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
48 lines (43 loc) · 1.37 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
layout: page
title: Suche
---
<br/><br/>
<form action="/search.html" method="get">
<input type="text" id="search-box" name="query">
<input type="submit" value="Suchen" class="btn btn-success btn-small">
</form>
<br/><br/>
<div id="search-results">
<i class="las la-spinner la-pulse la-lw"></i> Suche ...
</div>
<script>
window.store = {
{% for page in site.pages %}
{% case page.title %}
{% when "ignore-search" %}
{% else %}
"{{ page.url | slugify }}": {
"title": "{{ page.title | xml_escape }}",
"keywords": "{{ page.keywords | xml_escape }}",
"description": "{{ page.description | xml_escape }}",
"content": {{ page.content | strip_html | strip_the_newlines | jsonify }},
"url": "{{ page.url | xml_escape }}"
},
{% endcase %}
{% endfor %}
{% for page in site.posts %}
"{{ page.url | slugify }}": {
"title": "{{ page.title | xml_escape }}",
"keywords": "{{ page.keywords | xml_escape }}",
"description": "{{ page.description | xml_escape }}",
"content": {{ page.content | strip_html | strip_the_newlines | jsonify }},
"url": "{{ page.url | xml_escape }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
</script>
<script src="/js/lunr.min.js"></script>
<script src="/js/search.js"></script>