Sha256: 99c6d302135bc4685a04ab7943e739b138d57a589ef16d8044bce275d050c427

Contents?: true

Size: 896 Bytes

Versions: 4

Compression:

Stored size: 896 Bytes

Contents

---
layout: default
title: Search
permalink: /search/
---
<form action="/search/" method="get">
  <label for="search-box">Search</label>
  <input type="text" id="search-box" name="query">
  <input type="submit" value="search">
</form>

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

<script>
  window.store = {
    {% for post in site.posts %}
      "{{ post.url | slugify }}": {
        "title": "{{ post.title | xml_escape }}",
        "author": "{{ post.author | xml_escape }}",
        "category": "{{ post.category | xml_escape }}",
        "content": {{ post.content | strip_html | strip_newlines | jsonify }},
        "url": "{{ post.url | xml_escape }}"
      }
      {% unless forloop.last %},{% endunless %}
    {% endfor %}
  };
</script>
<script src="{{ "/assets/scripts/lunr.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/assets/scripts/search.js" | prepend: site.baseurl }}"></script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
starterlog-theme-1.2.0 _pages/search/index.html
starterlog-theme-1.1.3 _pages/search/index.html
starterlog-theme-1.1.2 _pages/search/index.html
starterlog-theme-1.1.1 _pages/search/index.html