forked from Jin-Yang/jin-yang.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (55 loc) · 2.38 KB
/
index.html
File metadata and controls
56 lines (55 loc) · 2.38 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
---
layout: default
title: while(SUCC!=try());
---
{% for post in paginator.posts %}
<div class="blog-post">
<div class="blog-post-title"><a href="{{ post.url }}">{{ post.title }}</a></div>
<span class="blog-post-meta"><i class="fa fa-calendar"></i> {{ post.date | date: "%F %A"}}</span>
<p style="margin-top:10px;">
{% if post.content contains "<!-- more -->" %}
{{ post.content | split:"<!-- more -->" | first }}
{% else %}
{{ post.content | strip_html | truncatewords: 200 }}
{% endif %}
</p>
</div>
<div class="blog-post-footer">
<ul class="no-list" style="list-style: none; padding-left:0px;"><li>
{% for cate in post.categories %}
<a class="label label-info" href="/categories.html#{{ cate }}"> {{ cate }} </a>
{% if forloop.last %}{% else %} {% endif %}
{% endfor %}
<a class="btn btn-default pull-right" href="{{ post.url }}" role="button">View Details »</a>
</li></ul>
</div>
{% endfor %}
<div class="row"><center>
{% if page.site_filter == null and paginator.total_pages > 1 %}
<nav><ul class="pagination pagination-lg">
{% if paginator.previous_page %}
<li><a href="/" title="Go to newest articles">«</a></li>
{% if paginator.previous_page > 1 %}
<li><a href="/page{{ paginator.previous_page }}" title="Go to newer articles">‹</a></li>
{% else %}
<li><a href="/" title="Go to newer articles">‹</a></li>
{% endif %}
{% else %}
<li class="disabled"><a title="Go to newest articles">«</a></li>
<li class="disabled"><a title="Go to newer articles">‹</a></li>
{% endif %}
{% if paginator.next_page %}
<li class="disabled"><span>page <strong>{{ paginator.next_page | minus:1 }}</strong> of <strong>{{ paginator.total_pages }}</strong></span></li>
{% else %}
<li class="disabled"><span>page <strong>{{ paginator.total_pages }}</strong> of <strong>{{ paginator.total_pages }}</strong></span></li>
{% endif %}
{% if paginator.next_page %}
<li><a href="/page{{ paginator.next_page }}" title="Go to older articles">›</a></li>
<li><a href="/page{{ paginator.total_pages }}" title="Go to oldest articles">»</a></li>
{% else %}
<li class="disabled"><a title="Go to older articles">›</a></li>
<li class="disabled"><a title="Go to oldest articles">»</a></li>
{% endif %}
</ul></nav>
{% endif %}
</center></div>