-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.html
33 lines (32 loc) · 943 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
<!DOCTYPE html>
<html>
{{> head}}
<body>
{{> header}}
<div class="container">
<div class="main">
<form action='/search' style="margin:-0.66em 0 1em">
<input placeholder="What are you looking for? Search for an entry..." value="{{#query}}{{query}}{{/query}}" name="q" id="search" type="text" />
</form>
<div class="archives">
{{#query}}
{{^entries}}
<p>Sorry, nothing found for “{{query}}”</p>
{{/entries}}
{{/query}}
{{#entries}}
<a href="{{url}}">{{date}}</a>
{{#title}} {{.}} {{/title}}
<span class="small">{{summary}}</span>
<br />
{{/entries}}
</div>
{{> footer}}
</div>
</div>
<script type="text/javascript">
var search = document.getElementById('search');
search.focus();
</script>
</body>
</html>