forked from osmlab/basket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·49 lines (46 loc) · 1.71 KB
/
index.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
---
layout: page
title: Stories
navid: Stories
date:
modified:
excerpt:
image:
feature:
search_omit: true
sitemap: false
---
<!-- Search form -->
<form method="get" action="{{ site.baseurl }}/search/" data-search-form class="simple-search">
<label for="q">Search {{ site.title }} for:</label>
<input type="search" name="q" id="goog-wm-qt" placeholder="What are you looking for?" data-search-input id="goog-wm-qt" autofocus />
<input type="submit" value="Search" id="goog-wm-sb" />
</form>
<!-- Search results placeholder -->
<h6 data-search-found>
<span data-search-found-count></span> result(s) found for “<span data-search-found-term></span>”.
</h6>
<ul class="post-list" data-search-results>
{% for post in site.posts limit:10 %}
<li>
<article>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span>{% if post.excerpt %} <span class="excerpt">{{ post.excerpt }}</span>{% endif %}</a>
<span class="entry-tags">
{% if post.tags %}
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags/#{{ tag }}" title="Posts tagged {{ tag }}">{{ tag }}</a>
{% unless forloop.last %}
{% endunless %}
{% endfor %}
{% endif %}
</span>
</article>
</li>
{% endfor %}
</ul>
<!-- Search result template -->
<script type="text/x-template" id="search-result">
<li><article>
<a href="##Url##">##Title## <span class="entry-date">##Date##</span><span class="excerpt">##Excerpt##</span></a><span class="entry-tags">##Tags##</span>
</article></li>
</script>