-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (48 loc) · 1.63 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
56
57
---
layout: page
---
{% for page in paginator.posts %}
<div class="article">
<h3 class="collection-index"><span class="in" style="text-decoration: none;"><a href="{{page.url}}" target="_blank">{{page.title}} »</a></span></h3>
<div class="article-content">
<div class="RichTextElement">
<div><p>{{ page.description }}</p></div>
</div>
</div> <!-- /article-content -->
<div class="article-info">
<div class="timestamp in"><span class="in">{% include post_info_bar %}</span></div>
</div> <!-- /article-info -->
</div> <!-- /article -->
<hr style="height:1px;border:none;border-top:1px dashed #987cb9; color:#987cb9;"/>
{% endfor %}
{% if paginator.total_pages > 1 %}
<!--分页器-->
<div id="pagination">
<div class="pagenavi">
<span class="page_number">第{{paginator.page}}页/共{{paginator.total_pages}}页</span>
<a href="/">第一页</a>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="current">前一页</a>
{% else %}
<a href="/page{{paginator.previous_page}}">前一页</a>
{% endif %}
{% else %}
<span>前一页</span>
{% endif %}
{% for count in (1..paginator.total_pages) limit:8 %}
{% if count == paginator.page %}
<span class="current-page">{{count}}</span>
{% else %}
<a href="/page{{count}}">{{count}}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}">后一页</a>
{% else %}
<span>后一页</span>
{% endif %}
<a href="/page{{paginator.total_pages}}">最后一页</a>
</div>
</div>
{% endif %}