---
layout: page
---

<h1 class="search-results-header">Search Results</h1>

<div>
  <form action="{{ site.baseurl }}/search.html" method="get">
    <input type="text" id="search-box" class="search-box" name="query">
    <input type="submit" class="search-button" value="search">
  </form>
</div>

<ul id="search-results"></ul>

<script>
  window.store = {
    {% for post in site.sections %}
      "{{ post.url | slugify }}": {
        "title": "{{ post.title }}",
        "namevar": {{ post.namevar | jsonify }},
        "categories": {{ post.categories | jsonify }},
        "tags": {{ post.tags | jsonify }},
        "content": {{ post.content | strip_html | strip_newlines | jsonify }},
        "url": "{{ site.baseurl }}{{ post.url }}"
      }
      {% unless forloop.last %},{% endunless %}
    {% endfor %}
  };
</script>
<script src="{{ site.baseurl }}/js/lunr.min.js"></script>
<script src="{{ site.baseurl }}/js/search.js"></script>
