This repository has been archived by the owner on May 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.html
53 lines (50 loc) · 2.4 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
---
layout: page
description: Havee Hobbies, Linux Tips Record。
tagline: 王者不可刚,阴柔三寸力,铁指寸进,劲断霸阳
---
{% include JB/setup %}
{% for post in paginator.posts %}
<div class="wrapper">
<h2 class="h2 entry-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
{% if post.content contains "<!-- more -->" %}
{{ post.content | split:'<!-- more -->' | first }}
{% else %}
{{ post.content | strip_html | truncatewords:50 }}
{% endif %}
<div class="status">
<div class="col-md-10 meta visible-lg visible-md">
<span class="glyphicon glyphicon-calendar"></span><p>{{ post.date | date_to_string }}</p>
<span class="glyphicon glyphicon-tags"></span> {% if post.tags %}{% for tag in post.tags %}<a href="/tags.html#{{ tag }}-ref" title="{{ tag }}"><p>{{ tag }}</p></a>{% endfor %}{% endif %}
<span class="glyphicon glyphicon-comment"></span><a href="{{ post.url }}#comments"><p>Comments<span class="ds-thread-count" data-thread-key="{{ post.id }}" data-count-type="comments"></span></p></a>
</div>
{% if post.content contains "<!-- more -->" %}
<a class="btn btn-primary btn-sm pull-right" href="{{ post.url }}"><span class="readmore">Read More » </span></a>
{% endif %}
<div class="clearfix"></div>
</div>
</div>
{% endfor %}
<!-- Pagination links -->
<div class="pull-right">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="btn btn-primary btn-sm" href="/">Home</a>
<a class="btn btn-primary btn-sm" href="/">« Prev</a>
{% else %}
<a class="btn btn-primary btn-sm" href="/">Home</a>
<a class="btn btn-primary btn-sm" href="/page{{paginator.previous_page}}/">« Prev</a>
{% endif %}
{% else %}
<span><a class="btn btn-primary btn-sm disabled" href="/">Home</a></span>
<span><a class="btn btn-primary btn-sm disabled">« Prev</a></span>
{% endif %}
<span><a class="btn btn-primary btn-sm disabled">Page: {{paginator.page}} of {{paginator.total_pages}}</a></span>
{% if paginator.next_page %}
<a class="btn btn-primary btn-sm" href="/page{{paginator.next_page}}/">Next »</a>
<a class="btn btn-primary btn-sm" href="/page{{paginator.total_pages}}/">Last</a>
{% else if paginator.page == paginator.total_pages %}
<span><a class="btn btn-primary btn-sm disabled">Next »</a></span>
<span><a class="btn btn-primary btn-sm disabled">Last</a></span>
{% endif %}
</div>