search.html 1.06 KB
Newer Older
Jacob Tomlinson's avatar
Jacob Tomlinson committed
1 2 3 4 5 6 7 8 9 10
---
layout: default
---

<div class="container-fluid index">
  <div class="row index all-posts">

    <h1 class="header author-header">Search</h1>

    <div id="search-container">
11
      <input type="text" id="search-input" autofocus="autofocus" placeholder="Type here...">
Jacob Tomlinson's avatar
Jacob Tomlinson committed
12
      <div class="col-md-12 content-panel articles">
Kirk Lange's avatar
Kirk Lange committed
13 14 15
        <ul id="results-container">
          <small>
            <p>Start typing to see results.</p>
Kirk Lange's avatar
Kirk Lange committed
16
            <p>Search by title, tag, category, and numeric date.</p>
Kirk Lange's avatar
Kirk Lange committed
17 18
          </small>
        </ul>
Jacob Tomlinson's avatar
Jacob Tomlinson committed
19 20 21 22 23 24
      </div>
    </div>

  </div>
</div>

25 26
<hr class="search-hr" />

27
<script src="{{ site.baseurl }}/js/jekyll-search.js" type="text/javascript"></script>
Jacob Tomlinson's avatar
Jacob Tomlinson committed
28 29 30 31 32 33 34 35 36 37 38 39

<script type="text/javascript">
  SimpleJekyllSearch.init({
    searchInput: document.getElementById('search-input'),
    resultsContainer: document.getElementById('results-container'),
    dataSource: '{{ site.baseurl }}/search.json',
    searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
    noResultsText: 'No results found',
    limit: 10,
    fuzzy: true,
  })
</script>