-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
71 lines (57 loc) · 1.76 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
---
layout: default
title: "Rust-China - Rust 中国社区"
active: index
keywords: "Rust 中国社区"
description: "Rust 中国社区 。"
---
<div id="home">
<ul class="post-list">
{% for post in paginator.posts %}
<li class="post rds">
<div class="title">
<span class="posttitle"> <a href="{{site.url}}{{site.baseurl}}{{ post.url }}">{{ post.title }}</a></span>
</div>
<div class="content">
{{ post.content | truncatehtml: 10 }}
</div>
<hr/>
</li>
{% endfor %}
<!-- page -->
<li class="post rds page"><div>
{% if paginator.previous_page %}
<span class="previous">
{% if paginator.previous_page == 1 %}
<a href="{{site.url}}{{site.baseurl}}/">Previous</a>
{% else %}
<a href="{{site.url}}{{site.baseurl}}{{ paginator.previous_page_path }}">Previous</a>
{% endif %}
</span>
{% else %}
<span "previous disabled"> Previous</span>
{% endif %}
{% if paginator.page == 1 %}
<span class="current-page">1</span>
{% else %}
<span class="page"><a href="{{site.url}}{{site.baseurl}}/">1</a> </span>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<span class="current-page">{{ count }}</span>
{% else %}
<span class="page"><a href="{{site.url}}{{site.baseurl}}/page{{ count }}">{{ count }}</a> </span>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<span class="next"><a href="{{site.url}}{{site.baseurl}}{{ paginator.next_page_path }}">Next</a></span>
{% else %}
<span class="next disabled">Next</span>
{% endif %}
</div>
</li>
<!-- end of page -->
</ul>
</div>
<div id="post-pagination">
</div>