-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (47 loc) · 1.36 KB
/
index.html
File metadata and controls
48 lines (47 loc) · 1.36 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
---
layout: default
title: 首页
---
{% for post in paginator.posts %}
<div class="full">
<h1 class="entry-title">
<a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a>
</h1>
<div class="entry-content full-content">
{{ post.content }}
<div class="clear"></div>
</div>
<p class="alt-font tight">
分类:
{% for category in post.categories %}
<a href="/categories/{{ category }}" title="{{ category }}" rel="category tag">{{ category }}</a>
{% endfor %}
</p>
<p class="comments-link">
<a href='{{post.url}}#disqus_thread'>评论</a>
</p>
<p class="by-line">
<span class="date full-date">
<abbr class="published" title="{{ post.date }}">{{ post.date | date:"%Y年%m月%d日" }}</abbr>
</span>
</p>
<div class="clear"></div>
</div>
<div class="rule"><hr/></div>
{% endfor %}
<div class="pagination">
<span class="previous">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/blog.html">« 上一页</a>
{% else %}
<a href="/page{{ paginator.previous_page }}/">« 上一页</a>
{% endif %}
{% endif %}
</span>
<span class="next">
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}/">下一页 »</a>
{% endif %}
</span>
</div>