brouilleursdeblanc/search/index.md
Tom Hoover 83f393b900 added 'autofocus' to search page
Added 'autofocus' attribute to automatically select the search input form upon page load (eliminates the need to 'click' in the input field before typing the search term).
2015-01-27 10:27:32 -05:00

31 lines
905 B
Markdown

---
layout: page
title: "Search"
date:
modified:
excerpt:
image:
feature:
search_omit: true
sitemap: false
---
<!-- Search form -->
<form method="get" action="{{ site.url }}/search/" data-search-form class="simple-search">
<label for="q">Search {{ site.title }} for:</label>
<input type="search" name="q" id="q" placeholder="What are you looking for?" data-search-input id="goog-wm-qt" autofocus />
<input type="submit" value="Search" id="goog-wm-sb" />
</form>
<!-- Search results placeholder -->
<h6 data-search-found>
<span data-search-found-count></span> result(s) found for &ldquo;<span data-search-found-term></span>&rdquo;.
</h6>
<ul class="post-list" data-search-results></ul>
<!-- Search result template -->
<script type="text/x-template" id="search-result">
<li><article>
<a href="##Url##">##Title## <span class="excerpt">##Excerpt##</span></a>
</article></li>
</script>