-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (31 loc) · 1.01 KB
/
index.html
File metadata and controls
33 lines (31 loc) · 1.01 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
---
layout: index
---
{% for post in paginator.posts %}
<div class="index-article">
<h2 class="index-title" ><a class="index" href="{{ post.url }}">{{ post.title }}</a></h2>
<em>{{ post.date | date: "%Y-%m-%d"}}</em>
{{ post.excerpt }}
{% capture other_content %}{{ post.content | remove:post.excerpt | remove: '<!--more-->' }}{% endcapture %}
{% if other_content.size > 10 %}
<div style="height:2em">
<a class="right button-link" href="{{ post.url }}">继续阅读</a>
</div>
{% endif %}
</div>
{% endfor %}
<div style="margin-top:1em;height:2em">
<div style="display:inline">
<a class="button-link" href="/all.html">所有文章</a>
</div>
<div class="right">
{% if paginator.previous_page == 1 %}
<a class="button-link" href="/">上一页</a>
{% elsif paginator.previous_page %}
<a class="button-link" href="/page{{ paginator.previous_page}}">上一页</a>
{% endif %}
{% if paginator.next_page %}
<a class="button-link" href="/page{{ paginator.next_page}}">下一页</a>
{% endif %}
</div>
</div>