27 lines
693 B
HTML
27 lines
693 B
HTML
<form method="get" action="">
|
|
<input id="zoekentxt" placeholder="zuurdesembrood" name="q" type="text" style="width: 50%" />
|
|
<button type="submit" class="button">Zoeken</button>
|
|
<a href="/zoeken">Leegmaken</a>
|
|
</form>
|
|
|
|
<div id="resultaten">
|
|
<hr/>
|
|
<h1>
|
|
Zoekresultaten
|
|
<span class="pages"></span> »
|
|
</h1>
|
|
<div id="searchapp"></div>
|
|
</div>
|
|
|
|
<script src="/js/lunr.min.js"></script>
|
|
{{ $p := slice }}
|
|
{{ range (where .Site.RegularPages "Section" "!=" "") }}
|
|
{{ $post := dict "link" .RelPermalink "title" .Title "content" (substr .Plain 0 200) -}}
|
|
{{ $p = $p | append $post -}}
|
|
{{ end }}
|
|
<script>
|
|
window.searchposts = JSON.parse(
|
|
{{ $p | jsonify }}
|
|
);
|
|
</script>
|