-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
36 lines (29 loc) · 1.05 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
---
layout: default
title: liuning0820.github.io
---
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<p class="author">
<span class="date">{{ post.date | date_to_string }}</span>
</p>
<div class="content">
<!-- {{ post.content }} -->
{{ post.excerpt }}
</div>
{% endfor %}
<!-- Pagination links -->
<div class="pagination" role="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="newer-posts" href="/" title="Previous Page">« Newer Posts</a>
{% else %}
<a class="newer-posts" href="/page{{ paginator.previous_page }}/" title="Previous Page">« Newer Posts</a>
{% endif %}
{% endif %}
<span class="page-number"> Page {{paginator.page}} of {{paginator.total_pages}} </span>
{% if paginator.next_page %}
<a class="older-posts" href="/page{{ paginator.next_page }}/" title="Next Page">Older Posts »</a>
{% endif %}
</div>