-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
70 lines (64 loc) · 2.6 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
layout: default
title: 枳的博客
---
<div id="blog-list-wrapper">
<aside id="banner" class="banner-wrapper">
<h1 class="vertical-title">枳的博客</h1>
<div id="tags">
<ul class="tags-list">
{% for tag in site.tags %}
<li class="tag-li">
<a href="{{ site.baseurl }}/tag/index.html#{{ tag | first}}">{{ tag | first }}</a>
</li>
{% endfor %}
</ul>
</div>
</aside><!--banner end-->
<section id="blog-list">
<ul>
{% for post in paginator.posts %}
<li>
<h2 class="blog-title"> <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<p class="blog-date"> {{ post.date | date_to_string }}</p>
<p> {{ post.excerpt }}
</li>
{% endfor %}
</ul>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
{% else %}
<span>« Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% 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: '//', '/' }}">Next »</a>
{% else %}
<span>Next »</span>
{% endif %}
</div>
{% endif %}
</section> <!--blog-list end -->
</div><!--bloglist-wrapper ends-->
<div class="exchange">
<div class="friends">
<h2 class="my-friends">我的朋友们</h3>
<ul class="friends-list">
<li><a href="http://zdx.link/">zdx</a></li>
<li><a href="http://momeakl.github.io/">高冰</a></li>
<li><a href="http://27979831.github.io/">李超源</a></li>
</ul>
<p>如果你想和我交换友链可以在下面留言或者给我发<a class="inline-link" href="mailto:[email protected]" title="[email protected]">邮件</a>
</div>
{% include comment.html %}
</div>