forked from evanwill/_drafts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (37 loc) · 1.12 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
---
layout: default
title: browse
---
<h2 class="page-title">Browse:</h2>
<div id="archiveList" class="archive-list">
<div class="browse">
<input class="search" placeholder=" Search" />
<button class="sort" data-sort="title">title</button>
<button class="sort" data-sort="date">date</button>
<button class="sort" data-sort="tags">tags</button>
</div>
<div class="listjs">
{% for post in site.notes reversed %}
<div class="archive-list-post">
<a href="{{ post.url | absolute_url }}">
<span class="title archive-list-post-title">
{{ post.title }}
</span>
<span class="date archive-list-post-date"> |
<time>{{ post.date | date: "%Y-%m-%d" }}</time> |
</span>
<span class="tags">{{ post.tags | join: ', ' }}</span>
</a>
</div>
{% endfor %}
</div>
</div>
<!-- add list.js http://www.listjs.com/ @javve -->
<script src="{{ "/js/list.min.js" | absolute_url }}"></script>
<script>
var options = {
valueNames: [ 'title', 'date', 'tags' ],
listClass: 'listjs'
};
var userList = new List('archiveList', options);
</script>