-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (54 loc) · 1.54 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
46
47
48
49
50
51
52
53
54
55
---
layout: default
title: Angel Zou
---
{% for post in paginator.posts %}
<div class="an-post">
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<h5><i class="icon-calendar"></i>{{ post.date | date: "%B. %d, %Y" }}</h5>
<!-- 截取摘要 -->
{% if site.excerpt_separator %}
<p>{{ post.excerpt }}</p>
{% else %}
<p>{{ post.content }}</p>
{% endif %}
<a class="more" href="{{ post.url }}">Continue Reading →</a><span></span>
</div>
{% endfor %}
<!--分页-->
<div id="post-pagination" class="pagination">
{% if paginator.total_pages > 1%}
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="previous" href="/">Previous</a>
{% else %}
<a class="previous" href="{{ paginator.previous_page_path }}">Previous</a>
{% endif %}
{% else %}
<span class="previous">Previous</span>
{% endif %}
<ul class="pages">
<li class="page">
{% if paginator.page == 1 %}
<span class="current-page">1</span>
{% else %}
<a href="/">1</a>
{% endif %}
</li>
{% for count in (2..paginator.total_pages) %}
<li class="page">
{% if count == paginator.page %}
<span class="current-page">{{ count }}</span>
{% else %}
<a href="/page{{ count }}">{{ count }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% if paginator.next_page %}
<a class="next" href="{{ paginator.next_page_path }}">Next</a>
{% else %}
<span class="next">Next</span>
{% endif %}
{% endif %}
</div>