forked from TowerofHanoi/towerofhanoi.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
33 lines (29 loc) · 890 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: default
sitemap: false
title: Search
---
{% capture mainblock %}
<div class="index clearfix">
<div id="search-container" class="all-posts">
<input type="text" id="search-input" placeholder="Type here...">
<div class="content-panel articles">
<ul id="results-container"><small>Start typing to see some results</small></ul>
</div>
</div>
</div>
</div>
{% endcapture %}
{% include base.html %}
<script src="/js/jekyll-search.js" type="text/javascript"></script>
<script type="text/javascript">
SimpleJekyllSearch.init({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
dataSource: '{{ site.baseurl }}/search.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
noResultsText: 'No results found',
limit: 10,
fuzzy: true,
})
</script>