-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
106 lines (96 loc) · 2.27 KB
/
index.html
File metadata and controls
106 lines (96 loc) · 2.27 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
layout: default
title: LinWumeng Blog
---
<!-- post preview -->
{% for post in paginator.posts %}
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<!-- title -->
<h1 style="margin-top:10px;margin-bottom:10px;"><a href="{{ post.url }}">{{ post.title }}</a></h1>
<!-- post info -->
<p class="post-info">
<i class="fa fa-calendar"></i>
<span class="date" style="color:darkgreen">
{{post.date | date: "%d %B %Y"}}
</span>
<i class="fa fa-folder-o"></i>
{% for category in post.categories %}
<a href="/categories.html#{{ category }}-ref" style="color:darkgreen">
{{ category }}
</a>
{% endfor %}
</p>
</div>
<div class="panel-body">
<!-- post content -->
<div class="post-content-truncate">
{% if post.content contains "<!-- more -->" %}
{{ post.content | split:"<!-- more -->" | first % }}
{% else %}
{{ post.content | strip_html | truncatewords:100 }}
{% endif %}
</div>
<!-- read more button -->
<div>
<a href="{{ post.url }}">Read more...</a>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
<!-- pagination section -->
<div style="text-align:center;">
<ul class="pagination pagination-lg">
<!-- first page link -->
{% if paginator.previous_page %}
<li>
<a href="/index.html">««</a>
</li>
{% else %}
<li class="disabled">
<a href="#">««</a>
</li>
{% endif %}
<!-- previous page link -->
{% if paginator.previous_page %}
<li>
<a href="/page{{paginator.previous_page}}">«</a>
</li>
{% else %}
<li class="disabled">
<a href="#">«</a>
</li>
{% endif %}
<!-- current page -->
<li class="active">
<span class="page_number ">Page: {{paginator.page}} of
{{paginator.total_pages}}</span>
</li>
<!-- next page link -->
{% if paginator.next_page %}
<li>
<a href="/page{{paginator.next_page}}">»</a>
</li>
{% else %}
<li class="disabled">
<a href="#">»</a>
</li>
{% endif %}
<!-- last page link -->
{% if paginator.next_page %}
<li>
<a href="/page{{ paginator.total_pages }}">»»</a>
</li>
{% else %}
<li class="disabled">
<a href="#">»»</a>
</li>
{% endif %}
</ul>
</div>