cullmann.io/layouts/_default/search.html

40 lines
937 B
HTML
Raw Normal View History

{{ define "content" }}
2019-04-11 23:02:11 +02:00
<!-- needed script magic -->
2019-04-13 22:57:48 +02:00
<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>
2019-04-11 23:02:11 +02:00
<!-- search content -->
<section class="container page">
<header>
<h1>Search</h1>
</header>
<article>
<form action="{{ "search" | absURL }}">
2019-04-13 23:17:32 +02:00
<input id="search-query" name="s" placeholder="Search..."/>
2019-04-11 23:02:11 +02:00
</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>
2019-04-11 23:02:11 +02:00
</article>
</section>
{{ end }}