2019-04-11 22:37:27 +02:00
|
|
|
{{ define "content" }}
|
2019-04-11 23:02:11 +02:00
|
|
|
|
|
|
|
<!-- needed script magic -->
|
2019-04-11 22:37:27 +02:00
|
|
|
<script src="/jquery-3.4.0.js"></script>
|
|
|
|
<script src="/fuse.js"></script>
|
|
|
|
<script src="/jquery.mark.js"></script>
|
|
|
|
<script src="/search.js"></script>
|
|
|
|
|
2019-04-11 23:02:11 +02:00
|
|
|
<!-- search content -->
|
|
|
|
<section class="container page">
|
|
|
|
|
|
|
|
<header>
|
|
|
|
<h1>Search</h1>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<article>
|
|
|
|
|
|
|
|
<form action="{{ "search" | absURL }}">
|
|
|
|
<input id="search-query" name="s"/>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div id="search-results">
|
|
|
|
</div>
|
2019-04-11 22:37:27 +02:00
|
|
|
|
|
|
|
<!-- 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>
|
2019-04-11 23:02:11 +02:00
|
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
2019-04-11 22:37:27 +02:00
|
|
|
{{ end }}
|