surwiki/templates/search.html

33 lines
757 B
HTML
Raw Normal View History

<div class="container">
<header>
<h1>Search</h1>
</header>
<article>
{{#hits?}}
<p>Search results for the query <b>{{query}}</b>:</p>
{{#prev}}<nav><ul class="dense"
><li><a rel="prev" href="{{.}}">Previous page</a></li
></ul></nav>{{/prev}}
<ul class="search-results default-keyboard-focus-control">
{{#hits}}
<li class="search-result"><a data-focusindex="{{.0}}" class="link" href="{{.1.link()}}"><p class="title">{{.1.title}}</p><p class="snippet">{{.1.snippet}}</p></a></li>
{{/hits}}
</ul>
{{/hits}}
{{#next}}<nav><ul class="dense"
><li><a rel="next" href="{{.}}">Next page</a></li
></ul></nav>{{/next}}
{{^hits?}}
<p>Your search for <b>{{query}}</b> gave no results.</p>
{{/hits}}
</article>
</div>
{{>footer/default.html}}