-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·99 lines (94 loc) · 2.88 KB
/
index.html
File metadata and controls
executable file
·99 lines (94 loc) · 2.88 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
layout: index
title: "天道酬勤"
---
{% if page.paginator %}
{% assign paginator = page.paginator %}
{% endif %}
<!--<div class="r weather">-->
<!--<iframe allowtransparency="true" frameborder="0" width="877" height="100" scrolling="no"-->
<!--src="//tianqi.2345.com/plugin/widget/index.htm?s=2&z=1&t=1&v=0&d=5&bd=1&k=000000&f=<f=009944&htf=cc0000&q=1&e=1&a=1&c=54511&w=877&h=100&align=center"></iframe>-->
<!--</div>-->
<!-- Loop output paged posts -->
{% for post in paginator.posts %}
<h3 style="height: 30px; line-height: 20px; margin-top: 10px; margin-bottom: 20px;">
<a href="{{ post.url }}">
{{ post.title }}
</a>
<div class="post-date" style="line-height: 26px">
<span class="glyphicon glyphicon-time"></span>
{{ post.date | date:"%Y-%m-%d" }}
</div>
</h3>
<hr>
{{ post.excerpt }}
<p><h5><a href="{{ post.url }}">阅读全文 »</a></h5></p>
<hr>
{% endfor %}
<!-- Pager indicator -->
<!--<ul class="pager">-->
<!--{% if paginator.previous_page %}-->
<!--{% if paginator.previous_page == 1 %}-->
<!--<li class="previous">-->
<!--<a href="/">-->
<!--← 上一页-->
<!--</a>-->
<!--</li>-->
<!--{% else %}-->
<!--<li class="previous">-->
<!--<a href="/posts/page{{ paginator.previous_page }}/index.html">-->
<!--← 上一页-->
<!--</a>-->
<!--</li>-->
<!--{% endif %}-->
<!--{% endif %}-->
<!--{% if paginator.next_page %}-->
<!--<li class="next">-->
<!--<a href="/posts/page{{ paginator.next_page }}/index.html">-->
<!--下一页 →-->
<!--</a>-->
<!--</li>-->
<!--{% endif %}-->
<!--</ul>-->
<div style="margin:0px auto;text-align: center">
{% if paginator.total_pages > 1 %}
<ul class="pagination">
{% if paginator.previous_page %}
<li>
<a href="{{ category_path | append : paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">«
Prev</a>
</li>
{% else %}
<li>
<span>« Prev</span>
</li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active">
<span>{{ page }}</span>
</li>
{% elsif page == 1 %}
<li>
<a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
</li>
{% else %}
<li>
<a href="{{ site.paginate_path | append : '/index.html' | prepend: site.baseurl | replace: ':num', page }}">{{
page }}</a>
</li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li>
<a href="{{ paginator.next_page_path | append : '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">Next
»</a>
</li>
{% else %}
<li>
<span>Next »</span>
</li>
{% endif %}
</ul>
{% endif %}
</div>