forked from h7aha7i86ana8aja8ai8y72084b/html
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.html
More file actions
28 lines (24 loc) · 687 Bytes
/
search.html
File metadata and controls
28 lines (24 loc) · 687 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
---
layout: home
title: Search
comments: false
---
<article>
<div style="text-align: center">
<h3>Finds a post by title, tag, category, date and url.</h3>
<input type="text" id="search-input"/>
</div>
<h3>Results:</h3>
<ul id="results-container">
</ul>
</article><!-- /.hentry -->
<script type="text/javascript">
window.onload = function(){
new SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '{{site.url}}/search.json',
searchResultTemplate: '<li class="entry-title"><a href="{url}" title="{title}">{title}</a></li>'
});
}
</script>