-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (61 loc) · 2.2 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
---
layout: default
navId: home
---
<div class="row">
<div class="col-md-9" role="main">
{% for post in paginator.posts %}
<div class="panel panel-default">
<div class="panel-heading">
<h4>
<a href="{{ site.ctx }}{{ post.url }}">{{ post.title }}</a>
</h4>
</div>
<div class="panel-body">{{ post.excerpt }}</div>
<div class="panel-footer">
<small>
创建于:{{ post.date | date: "%Y-%m-%d" }}
|
分类:
{% for category in post.categories %}
<a href="{{ site.ctx }}/categories#{{ category }}">{{ category }}</a>
{% endfor %}
|
标签:
{% for tag in post.tags %}
<a href="{{ site.ctx }}/tags#{{ tag }}">{{ tag }}</a>
{% endfor %}
</small>
</div>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<ul class="pagination">
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active"><span>{{ page }} <span class="sr-only">(current)</span></span></li>
{% else %}
<li><a href="{{ site.ctx }}{%if page > 1 %}/page{{ page }}/{% endif %}">{{ page }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">文档分类</h3>
</div>
<ul class="nav nav-pills nav-stacked">
{% for category in site.categories %}
<li>
<a href="{{ site.ctx }}/categories#{{ category[0] }}">
<span class="badge pull-right">{{ category[1].size }}</span>
<i class="fa fa-list"></i> {{ category[0] }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>