---
title: Search
sitemap: false
permalink: /search/
---

<div class="search-page">
	<h2>Search Results</h2>

	<p><span id="search-process">Loading</span> results <span id="search-query-container" style="display: none;">for "<strong id="search-query"></strong>"</span></p>
	<ul id="search-results"></ul>
</div>

<script>
	window.data = {
		{% for collection in site.collections %}
			{% for item in collection.docs %}
				{% if item.title %}
					{% unless item.excluded_in_search %}
						{% if added %},{% endif %}
						{% assign added = false %}
						"{{ item.id | strip | slugify }}": {
							"id": "{{ item.id | strip | slugify }}",
							"title": "{{ item.title | strip | xml_escape }}",
							"category": "{{ collection.label | strip | xml_escape }}",
							"description": "{{ item.description | strip | xml_escape }}",
			 				"type": "{{ item.type | strip | xml_escape }}",
							"url": "{{ item.url | strip }}",
							"content": {{ item.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
						}
						{% assign added = true %}
					{% endunless %}
				{% endif %}
			{% endfor %}
		{% endfor %}
	};
</script>
{% if jekyll.environment == 'production' %}
	<script src="{{ '/js/lunr.min.js' | relative_url }}"></script>
	<script src="{{ '/js/search.js' | relative_url }}"></script>
{% else %}
	<script src="{{ '/js/lunr.min.js' | relative_url }}"></script>
	<script src="{{ '/js/search.js' | relative_url }}"></script>
{% endif %}
