Implementeren zoekfunctionaliteit
This commit is contained in:
parent
55c242d4b6
commit
372746317e
16 changed files with 247 additions and 13 deletions
26
themes/nluug/layouts/_default/search.html
Normal file
26
themes/nluug/layouts/_default/search.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{{ define "main" }}
|
||||
<h2>Zoeken</h2>
|
||||
{{ partial "search-form.html" . }}
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div id="search-results"></div>
|
||||
<div class="search-loading">Wachten op zoekopdracht of resulten... (JavaScript is voor deze pagina vereist)</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}">
|
||||
<h3><a href="${link}">${title}</a></h3>
|
||||
<p>${snippet}</p>
|
||||
<p>
|
||||
<small>
|
||||
${ isset tags }Tags: ${tags}<br>${ end }
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue