-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
168 lines (97 loc) · 3.5 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
title: 陈开华博客
tagline: 首页
layout: page
home: true
---
<div class="row">
<div class="col-md-9">
{% for post in paginator.posts %}
<div class="well page">
<h1 class="header" >{{ post.title }}</h1>
<p> {{ post.excerpt }} </p>
<div class="row">
<div class="col-xs-6 " ><span >{{ post.date | date: "%Y-%m-%d" }}</span></div>
<div class="col-xs-6 text-right"><a href="{{ post.url }}" class="btn btn-raised btn-primary">阅读全文</a></div>
</div>
</div>
{% endfor %}
<nav class="text-center" >
<ul class="pagination ">
{% if paginator.previous_page %}
<li >
{% if paginator.previous_page == 1 %}
<a href="/" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
{% else %}
<a href="{{ paginator.previous_page_path }}" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
{% endif %}
</li>
{% else %}
<li class="disabled">
<a aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
{% endif %}
{% if paginator.page == 1 %}
<li class="active"><span>1</span></li>
{% else %}
<li>
<a href="/">1</a>
</li>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<li class="active"><span class="current-page">{{ count }}</span></li>
{% else %}
<li><a href="/page{{ count }}">{{ count }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li >
<a href="{{ paginator.next_page_path }}" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
{% else %}
<li class="disabled">
<a aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
{% endif %}
</ul>
</nav>
</div>
<div class="col-md-3 hidden-xs">
<div class="panel panel-primary">
<div class="panel-heading"> <h3 class="panel-title">分类文章</h3></div>
{% for category in site.categories %}
<a href="/categories.html#{{ category[0] }}-ref" class="list-group-item"> {{ category[0] }} <span class="badge ">{{ category[1].size }}</span></a>
{% endfor %}
</div>
{% if site.data.github-projects.show %}
<div class="panel panel-primary">
<div class="panel-heading ">{{ site.data.github-projects.title }}</div>
{% for project in site.data.github-projects.links %}
<a href="{{ project.url }}" title="{{ project.title }}" target="_blank" class="list-group-item">{{ project.name }}</a>
{% endfor %}
<!-- <a href="https://github.com/ichenkaihua/GreenDAO-Simple-Generate" title="用少量注解简化greendao的生成" target="_blank" class="list-group-item">GreenDAO-Simple-Generate</a>
<a href="https://github.com/ichenkaihua/ssm-easy-template" title="spring+springmvc+mybatis+shiro简单集成框架" target="_blank" class="list-group-item">ssm-easy-template</a>
<a href="https://github.com/ichenkaihua/spring-ebean" title="spring4+springMVC4+EbeanORM6+flyway+Gradle" target="_blank" class="list-group-item">spring-ebean</a> -->
</div>
{% endif %}
{% if site.data.links.show %}
<div class="panel panel-primary">
<div class="panel-heading">{{ site.data.links.title }}</div>
{% for link in site.data.links.links %}
<a href="{{ link.url }}" target="_blank" class="list-group-item">{{ link.name }} </a>
{% endfor %}
</div>
{% endif %}
</div>
</div>