-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexplore.html
More file actions
70 lines (47 loc) · 1.89 KB
/
Copy pathexplore.html
File metadata and controls
70 lines (47 loc) · 1.89 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
layout: default
title: explore
permalink: /explore/
---
<style media="screen" type="text/css">
ul, li {list-style-type: none; list-style-position:inside; margin:0; padding:0; text-align:center;}
li {margin: 0 0 5px 0}
article li {color:#494949; list-style-type:disc; text-align:left; list-style-position:outside}
article li a {color:#494949;}
</style>
<div id="search-container"; align="center">
<input type="text" id="search-input" placeholder="search tags and titles" onkeydown="onkeypressed(event, this);" autofocus>
</div>
<ul id="results-container"; align="left"></ul>
<hr>
<div id="archives"; align="left">
{% for category in site.categories %}
<div class="archive-group">
{% capture category_name %}{{ category | first }}{% endcapture %}
<div id="#{{ category_name | slugize }}"></div>
<p></p>
<h3 class="category-head">{{ category_name }}</h3>
<a name="{{ category_name | slugize }}"></a>
{% for post in site.categories[category_name] %}
<!-- <article class="category-head"> -->
<article class="archive-item">
<!-- <li><span>{{ post.date | date_to_string }}</span> <b href="{{ post.url }}">{{ post.title }}</b></li> -->
<li><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></li>
</article>
{% endfor %}
</div>
{% endfor %}
</div>
<!-- script pointing to jekyll-search.js -->
<script src="{{ site.baseurl }}/js/simple-jekyll-search.min.js"></script>
<script type="text/javascript">
SimpleJekyllSearch.init({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
dataSource: '{{ site.baseurl }}/search.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
noResultsText: 'No results found',
limit: 10,
fuzzy: false,
})
</script>