-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (43 loc) · 1.32 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: default
title: Homepage
---
<div id="home">
<div class="posts single-wrap">
<div class="feat" style="margin-left: 3.5em; margin-right: 3.5em;">
<h5 class="page-date">
Posts
</h5>
</div>
{% for post in paginator.posts %}
<section class="post_summary">
<h2 class="title"><a href="{{ post.url }}" rel="prefetch">{{ post.title }}</a></h2>
<p>{{ post.excerpt }}</p>
<p><a href="{{ post.url }}" rel="prefetch">Read more...</a></p>
<div class="meta">
<span>{{ post.author }}</span> —
<time pubdate datetime="{{ post.date | date: "%Y-%d-%B" }}" title="{{ post.date | date: "%b %d, %Y" }}">{{ post.date | date: "%b %d, %Y" }}</time>
</div>
<hr>
</section>
{% endfor %}
</div>
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.next_page %}
<a href="/all/{{paginator.next_page}}" class="older">« Older</a>
{% else %}
<span class="next">Older</span>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a href="/" class="newer">Newer »</a>
{% else %}
<a href="/all/{{paginator.previous_page}}" class="newer">Newer »</a>
{% endif %}
{% else %}
<span class="previous">Newer</span>
{% endif %}
</div>
{% endif %}