-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (34 loc) · 1.34 KB
/
index.html
File metadata and controls
38 lines (34 loc) · 1.34 KB
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
---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<h1 class="post-title">
<a href="{{ post.url }}" rel="bookmark">
{{ post.title }}
</a>
</h1>
<span class="post-date"> <i class="fa fa-calendar"></i> {{ post.date | date: "%Y年%-m月%-d日" }}</span>
{% if post.content contains '<!--more-->' %}
{{ post.content | split:'<!--more-->' | first }}
<p><a href="{{ post.url }}#more" class="button"><i class="fa fa-file-text-o"></i> 阅读全文<i class="fa fa-space-shuttle"></i></a></p>
{% else %}
{{ post.content | truncatehtml: 300 }}
{% endif %}
</div>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.previous_page %}
<a class="pagination-item newer" href="{{ paginator.previous_page_path }}"><i class="fa fa-hand-o-left"></i> Newer · 新文</a>
{% else %}
<span class="pagination-item newer"><i class="fa fa-hand-o-left"></i> Newer · 新文</span>
{% endif %}
{% if paginator.next_page %}
<a class="pagination-item older" href="{{ paginator.next_page_path }}">Older · 旧文 <i class="fa fa-hand-o-right"></i></a>
{% else %}
<span class="pagination-item older">Older · 旧文 <i class="fa fa-hand-o-right"></i></span>
{% endif %}
</div>