-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (35 loc) · 1.33 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
---
layout: default
title: 龙浩的blog
---
{% for post in paginator.posts %}
<article class="post">
<h2>{{ post.date | date: "%Y-%m-%d" }} | <a href="{{ site.url }}{{ post.url }}" rel="bookmark permalink">{{ post.title }}</a></h2>
<div class="row-fluid show-grid">
<div class="span12">
<span class="label label-info">分类</span><a href="/categories.html#{{ post.categories }}-ref"> {{ post.categories }} </a>
<span class="label label-warning">标签</span> {% for tag in post.tag %} <a href="/tags.html#{{ tag }}-ref">{{ tag }}</a> {% endfor %}
</div>
</div>
{{ post.content }}
<div class="row-fluid show-grid artice_bottom">
<div class="pull-right">
<a href="{{ site.url }}{{ post.url }}#disqus_thread" title="Comments" class="btn btn-success">立刻发布评论</a>
</div>
</div>
</article>
{% endfor %}
<div>
<ul class="pager">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li class="previous"><a href='/'><h4>上一页</h4></a></li>
{% else %}
<li class="previous"><a href='/page{{paginator.previous_page}}'><h4>上一页</a></h4></li>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<li class="next"><a href='/page{{paginator.next_page}}'><h4>下一页</h4></a></li>
{% endif %}
</ul>
</div>