forked from erjjones/erjjones.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (48 loc) · 2.02 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
---
layout: layout
title: "书亚博园"
---
{% for post in paginator.posts %}
<div class="row">
<div class="span7">
<div class="row">
<div class="span2">
<a href="{{ post.url }}" >
<img border="0" width="250" height="150" src="/img/posts/{{ post.image }}" alt="">
</a>
</div>
<div class="span5">
<h4><strong><a href="{{ post.url }}">{{ post.title }}</a></strong></h4>
<p>
{{ post.summary }}
</p>
<p>
<i class="icon-calendar"></i> {{ post.date | date: "%Y-%m-%d" }}
<!-- | <i class="icon-comment"></i> <a href="http://fooyou.github.io{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.url }}"></a> -->
| <i class="icon-tags"></i> 标签 :{% for tag in post.tags %} <a href="/tags/{{ tag }}" rel="tooltip" title="View posts tagged with "{{ tag }}""><span class="label label-info">{{ tag }}</span></a> {% if forloop.last != true %} {% endif %} {% endfor %}
</p>
<p><a href="{{ post.url }}">完整阅读</a></p>
</div>
</div>
<hr>
</div>
</div>
{% endfor %}
<!-- 分页 -->
{% if paginator.total_pages > 1 %}
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">上一页</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<span class="active">{{ page }} </span>
{% elsif page == 1 %}
<a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
{% else %}
<a href="/{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">下一页</a>
{% endif %}
{% endif %}