blob: b7b0ec22455eceeec9cf40daa288e2e2fdb941c3 (
plain)
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
|
{{ define "content" }}
<!-- needed script magic -->
<script src="/js/jquery-3.4.0.js"></script>
<script src="/js/fuse.js"></script>
<script src="/js/jquery.mark.js"></script>
<script src="/js/search.js"></script>
<!-- search content -->
<section class="container page">
<header>
<h1>Search</h1>
</header>
<article>
<form action="{{ "search" | absURL }}">
<input id="search-query" name="s" placeholder="Search..."/>
</form>
<div id="search-results">
</div>
<!-- this template is sucked in by search.js and appended to the search-results div above. So editing here will adjust style -->
<script id="search-result-template" type="text/x-js-template">
<div id="summary-${key}">
<h4><a href="${link}">${title}</a></h4>
<p>${snippet}</p>
${ isset tags }<p>Tags: ${tags}</p>${ end }
${ isset categories }<p>Categories: ${categories}</p>${ end }
</div>
</script>
</article>
</section>
{{ end }}
|