-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (42 loc) · 1.08 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
---
layout: page
---
<div id="index">
{% for post in paginator.posts %}
<article>
<header>
<h2><a href="{{site.baseurl}}{{post.url}}">{{ post.title }}</a></h2>
<span class="date">
{% include icons/clock-o.svg %}
<time datetime="{{post.date|date:"%F"}}">{{post.date|date:"%b %d, %Y"}}</time>
</span>
{% if post.tags.size > 0 %}
<span class="tags">
{% include icons/tag.svg %}
{{ post.tags | array_to_sentence_string }}
</span>
{% endif %}
</header>
<div class="entry">{{ post.excerpt }}</div>
</article>
{% endfor %}
<div id="paginator">
{% if paginator.next_page %}
<a href="{{site.baseurl}}/page{{paginator.next_page}}">
« Older Posts</a>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<span class="more">
<a href="{{site.baseurl}}/">
Newer Posts » </a>
</span>
{% else %}
<span class="more">
<a href="{{site.baseurl}}/page{{paginator.previous_page}}">
Newer Posts » </a>
</span>
{% endif %}
{% endif %}
</div>
</div>