-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (52 loc) · 2.07 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
---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<div class="post-heading">
<img src="/public/img/{{ post.author }}.jpg">
<h1 class="post-title">
<a class="post-title-home" href="{{ post.url }}">
{{ post.title }}
</a>
</h1>
<p class="post-info">
{% if post.author == "yangtze736" %}
<!-- {{ post.author }}原创 -->
{% else %}
<!-- 转载{{ post.author }} -->
{% endif %}
</p>
<span class="post-info"><i class="fa fa-calendar"></i> {{ post.date | date: "%Y" }}/{{ post.date | date: "%m" }}/{{ post.date | date: "%d" }} </span>
<span class="post-info"><i class="fa fa-book"></i> <a href="/category/index.html#{{ post.categories }}">{{ post.categories }}</a></span>
<span class="post-info"><i class="fa fa-tags"></i> <a href="/tag/index.html#{{ post.tags | first }}">{{ post.tags | first }}</a></span>
<span class="post-info"><a href="/tag/index.html#{{ post.tags[1] }}">{{ post.tags[1] }}</a></span>
<span class="post-info"><a href="/tag/index.html#{{ post.tags[2] }}">{{ post.tags[2] }}</a></span>
</div>
<div class="post-content">
{{ post.content | split:"<!-- more -->" | first }}
<div class="readmore">
<a href="{{ post.url }}"><i class="fa fa-hand-o-right"></i> 阅读全文</a>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="/">更新的博文</a>
{% else %}
<a class="pagination-item newer" href="/page{{paginator.previous_page}}">更新的博文</a>
{% endif %}
{% else %}
<span class="pagination-item newer">已经是最新的博文</span>
{% endif %}
{% if paginator.next_page %}
<a class="pagination-item older" href="/page{{paginator.next_page}}">更早的博文</a>
{% else %}
<span class="pagination-item older">已经是最后一页</span>
{% endif %}
</div>