29 lines
1.6 KiB
HTML
29 lines
1.6 KiB
HTML
<article>
|
|
<form method="get" action="" class="search-form">
|
|
<input id="zoekentxt" placeholder="philosophy" aria-label="Search terms" name="q" type="text" style="width: 56%" />
|
|
<button type="submit" class="button" style="width: 36%">Search!</button>
|
|
</form>
|
|
</article>
|
|
|
|
<div id="resultaten">
|
|
<hr/>
|
|
<h2>
|
|
Search results
|
|
<span class="pages"></span> »
|
|
</h2>
|
|
<div id="searchapp">Searching, please wait... </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>
|