-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.html
More file actions
26 lines (24 loc) · 848 Bytes
/
search.html
File metadata and controls
26 lines (24 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
layout: page
title: Search
permalink: /search/
pageclasses: page-search
---
<!-- Search results placeholder -->
<div id="search-results" class="search-results"></div>
{% comment %}JSON for the search - see assets/js/search.js {% endcomment %}
<script>
var searchIndex = [
{% for post in site.posts %}
{
"title" : {{ post.title | markdownify | strip_html | jsonify }},
"category" : {{ post.category | markdownify | strip_html | jsonify }},
"description": {{ post.description | markdownify | strip_html | jsonify }},
"content" : {{ post.content | markdownify | strip_html | jsonify }},
"url" : "{{ post.url }}",
"date" : "{{ post.date }}",
"shortdate" : "{{ post.date | date: '%B %-d, %Y' }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]
</script>