forked from adulau/threat-intelligence.eu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
33 lines (29 loc) · 966 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
33
---
layout: page
title: Search
hide: true
---
<div class="search">
<div id="search-results"></div>
<p id="not-found" style="display: none">
{{ site.theme_settings.str_search_no_results }}
</p>
</div>
<script>
window.store = {
{% for post in site.posts %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"tags": "{{ post.tags | join: ', ' }}",
"date": "{{ post.date | date: '%B %-d, %Y' }}",
"author": "{{ post.author | xml_escape }}",
"category": "{{ post.category | xml_escape }}",
"content": {{ post.content | strip_html | strip_newlines | jsonify }},
"url": "{{ site.baseurl }}/{{ post.url | xml_escape }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/0.7.1/lunr.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/search.js"></script>