-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
73 lines (72 loc) · 2.57 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
71
72
73
---
layout: default
title: Zhifeng.Liang's Homepage|梁志锋的个人主页|机器学习|济南大学
---
<div class="main-index fn-clear">
{% for post in paginator.posts %}
<article class="main-excerpt fn-clear">
<h4 class="article article-first"><a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a></h4>
<p class="date">
<i class="icon-calendar"></i>{{ post.date| date: "%B %e,%Y" }}
<i class="icon-cogs"></i>
{% for cat in post.categories %}
<a href="/categories.html#{{ cat }}-ref" title="{{ cat }}" rel="category">{{ cat }}</a>
{% endfor %}
<i class="icon-tags"></i>
</p>
<p>{{ post.description }}</p>
<p class="more"><a href="{{ post.url }}" title="阅读更多" rel="nofollow"><span>➥</span>阅读更多</a></p>
</article>
{% endfor %}
<nav class="pagination fn-clear">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<span class="page"><<a href="/">前页</a></span>
{% else %}
<span class="page"><<a href="/page{{paginator.previous_page}}">前页</a></span>
{% endif %}
{% else %}
<span class="page"><前页</span>
{% endif %}
{% if paginator.page == 1 %}
<span class="currentitem"><a href="/">1</a></span>
{% else %}
<span class="pageitem"><a href="/">1</a></span>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<span class="currentitem"><a href="/page{{count}}">{{count}}</a></span>
{% else %}
<span class="pageitem"><a href="/page{{count}}">{{count}}</a></span>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<span class="page"><a class="next" href="/page{{paginator.next_page}}">后页</a>></span>
{% else %}
<span class="page" >后页></span>
{% endif %}
<span class="page">(共{{ paginator.total_posts }}篇)</span>
</nav>
</div>
<hr/>
<section class="lost-double fn-clear">
<article class="article article-first">
<h3>技术博客</h3>
<ul>
{% for post in site.categories.tech limit: 4 %}
<li><a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a></li>
{% endfor %}
</ul>
<p class="more"><a href="/tech.html" title="阅读更多" rel="nofollow"><span>➥</span>阅读更多</a></p>
</article>
<article class="article article-last">
<h3>生活随笔</h3>
<ul>
{% for post in site.categories.blog limit: 4 %}
<li><a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a></li>
{% endfor %}
</ul>
<p class="more"><a href="/tech.html" title="阅读更多" rel="nofollow"><span>➥</span>阅读更多</a></p>
</article>
</section>