forked from writelife/panxw.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (42 loc) · 957 Bytes
/
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
---
layout: index
title: "个人博客-李同垒"
---
<!-- Loop output paged posts -->
{% for post in paginator.posts %}
<h2>
<a href="{{ post.url }}">
{{ post.title }}
</a>
<div class="post-date">
<span class="glyphicon glyphicon-time"></span>
{{ post.date | date:"%Y-%m-%d" }}
</div>
</h2>
<hr>
{{ post.excerpt }}
<p><h3><a href="{{ post.url }}">阅读全文 »</a></h3></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>