-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathindex.html
48 lines (47 loc) · 1.01 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
---
layout: default
title: "首页:Home"
---
<h1 class="page-header">
<small>
{{ site.description }}
</small>
</h1>
<!-- 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_to_string }}
</div>
</h2>
<hr>
{{ post.excerpt }}
<p> <a href="{{ post.url }}"><span >阅读全文 » </span></a></p>
<hr>
{% endfor %}
<!-- Pager indicator -->
<ul class="pager">
{% if paginator.previous_page %} {% if paginator.previous_page == 1 %}
<li class="previous">
<a href="{{ site.url }}/">
← Older
</a>
</li>
{% else %}
<li class="previous">
<a href="{{ site.url }}/page{{ paginator.previous_page }}">
← Older
</a>
</li>
{% endif %} {% endif %} {% if paginator.next_page %}
<li class="next">
<a href="{{ site.url }}/page{{ paginator.next_page }}">
Newer →
</a>
</li>
{% endif %}
</ul>