-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.html
40 lines (30 loc) · 863 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
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en-US">
{{> _head}}
<body>
{{> _header}}
<form action="/search" class="search-form">
<input class="search__input" name="q" type="search" placeholder="Enter a query e.g. coffee" value="{{#query}}{{query}}{{/query}}" autofocus>
<input class="search__button" type="submit" value="Search">
</form>
<p>
You may also be interested in browsing the <a style="text-decoration: underline" href="/tags">tags</a> or <a style="text-decoration: underline" href="/archives">archives</a>.
</p>
<br>
{{#query}}
{{^entries}}
<p>Sorry, nothing found for “<u><em>{{query}}</em></u>”</p>
{{/entries}}
{{/query}}
{{#entries}}
{{> __entry}}
{{/entries}}
{{^entries.length}}
<br><br><br>
{{/entries.length}}
{{#entries.length}}
<hr>
{{/entries.length}}
{{> _footer}}
</body>
</html>