-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
54 lines (52 loc) · 1.91 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
52
53
54
---
layout: main
---
<section id="search-results"></section>
{% raw %}
<script id="search-results-template" type="text/template">
<h1>Search Results</h1>
{% if results.length != 0 %}
{% for result in results %}
{% assign page = store[result.ref] %}
<article class="post-content">
<header class="entry-header">
<span class="screen-reader-text">{{ page.title }}</span>
<h2 class="entry-title">
<a href="{{ page.url | prepend:baseurl }}" rel="bookmark">{{ page.title }}</a>
</h2>
{% if page.date != "" %}
<div class="entry-meta">
<h5 class="entry-date">
<i class="fa fa-calendar-o"></i>
<a href="{{ page.url | prepend:baseurl }}">
{{ page.date | date: '%B %e, %Y' }}
</a>
<span class="byline">
<span class="sep"></span>
<i class="fa fa-user"></i>
<span class="author vcard">
<a
class="url fn n"
href="{{ baseurl }}/author/{{ page.author }}"
title="View all posts by {{ site.data.authors[page.author].name }}"
rel="author">
{{ site.data.authors[page.author].name }}
</a>
</span>
</span>
<i class="fa fa-comments-o"></i>
<span class="screen-reader-text">Comments </span>
<a href="{{ page.url | prepend:baseurl | append: '#respond' }}" class="comments-link">
Comments
</a>
</h5>
</div>
{% endif %}
</header>
</article>
{% endfor %}
{% else %}
<p>Nothing found.</p>
{% endif %}
</script>
{% endraw %}