-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.html
More file actions
36 lines (31 loc) · 744 Bytes
/
search.html
File metadata and controls
36 lines (31 loc) · 744 Bytes
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
---
layout: default
title: Search
permalink: /search/
---
<div id="results">
</div>
<script>
var JEKYLL_POSTS = [];
{% for post in site.posts %}
JEKYLL_POSTS.push({
title: "{{ post.title }}",
link: "{{ post.url | prepend: site.baseurl }}",
content: {{ post.content | markdownify | strip_html | jsonify }}
});
{% endfor %}
{% for doc in site.docs %}
JEKYLL_POSTS.push({
title: "{{ doc.title }}",
link: "{{ doc.url | prepend: site.baseurl }}",
content: {{ doc.content | markdownify | strip_html | jsonify }}
});
{% endfor %}
</script>
<script src="{{ "/js/search.js" | prepend: site.baseurl }}"></script>
<script>
new jekyllSearch({
selector: "#results",
properties: ["title", "content"]
});
</script>