-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.html
51 lines (46 loc) · 1.6 KB
/
search.html
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
layout: default
title: Search
---
<section class='category'>
<section class='category-container'>
<header class='category-header' {% if page.title == "Search" %}id='search-results-header'{% endif %}>
<h1 class='title' id='title'></h1>
</header>
<section class='category-body'>
<section class='articles' id="search-results">
</section>
<section class='sidebar'>
{% include fb-likebox.html %}
</section>
</section>
</section>
</section>
<script>
window.store = {
{% for post in site.posts %}
{% if post.hl-desc %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"author": "{{ site.data.settings.title }}",
"category": "{{ post.category | xml_escape }}",
"dated": "{{ post.dated }}",
"content": {{ post.hl-desc | strip_html | strip_newlines | jsonify }},
"url": "{{ post.url | xml_escape }}"
}
{% else %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"author": "{{ site.data.settings.title }}",
"category": "{{ post.category | xml_escape }}",
"dated": "{{ post.dated }}",
"content": {{ post.content | strip_html | strip_newlines | jsonify }},
"url": "{{ post.url | xml_escape }}"
}
{% endif %}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
</script>
<script src="/assets/js/lunr.min.js"></script>
<script src="/assets/js/search.js"></script>