-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
73 lines (56 loc) · 1.79 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
layout: default
title: Search Results
---
<!-- PAGE TOP -->
<section class="page-title">
<div class="container">
<header>
<ul class="breadcrumb"><!-- breadcrumb -->
<li><a href="/blog/index.html">Blog</a></li>
<li class="active">Search</li>
</ul><!-- /breadcrumb -->
<h2><!-- Page Title -->
<strong>Blog </strong>Search Results
</h2><!-- /Page Title -->
</header>
</div>
</section>
<!-- /PAGE TOP -->
<!-- CONTENT -->
<section>
<div class="container">
<!-- SEARCH -->
<form method="get" action="/search.html" class="clearfix well well-sm search-big">
<div class="input-group">
<div class="input-group-btn">
<label for="search-box">Search</label>
</div>
<input id="search-box" class="form-control input-lg" type="text" name="query" placeholder="Search...">
<div class="input-group-btn">
<button type="submit" class="btn btn-default input-lg" value="search"><i class="fa fa-fw fa-search fa-lg"></i></button>
</div>
</div>
</form>
<!-- /SEARCH -->
<ul id="search-results"></ul>
<script>
window.store = {
{% for post in site.posts %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"author": "{{ post.author | xml_escape }}",
"content": {{ post.content | strip_html | strip_newlines | jsonify }},
"url": "{{ post.url | xml_escape }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
</script>
<script src="/js/lunr.min.js"></script>
<script src="/js/search.js"></script>
<div class="row">
</div>
</div>
</section>
<!-- /CONTENT -->