-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
36 lines (26 loc) · 959 Bytes
/
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
---
layout: default
---
<div class="posts">
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<div class="post">
<div class="post-heading">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
<span>{{ post.date | date_to_string }} by {{ post.author }}</span>
</div>
{{ post.excerpt }}
<p>» <a href="{{ site.baseurl }}{{ post.url }}" class="button button-primary">View Post</a></p>
</div>
{% endfor %}
</div>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="previous btn btn-default">Previous Page</a>
{% endif %}
<span class="page_number ">{{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ site.baseurl }}{{ paginator.next_page_path }}" class="next btn btn-default">Next Page</a>
{% endif %}
</div>