forked from cobbler/cobbler.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
66 lines (63 loc) · 1.78 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
---
layout: default
title: Blog
breadcrumb: Blog
---
<div class="container">
<!-- post list -->
{% for post in paginator.posts %}
<div class="row-fluid">
<div class="span10 posts">
<div class="post">
<h2 class="header">{{ post.title }}</h2>
<div class="author">
<i>Posted by {{ post.author }} on {{ post.date | date: "%A, %B %d, %Y" }}</i>
</div>
<div class="content">
{{ post.content | strip_html | truncatewords:30}}
</div>
<div class="readmore">
<a href="{{ post.url }}"><i class="icon-double-angle-right"></i> continue reading</a>
</div>
</div>
</div>
</div>
{% endfor %}
<!-- pagination -->
{% if paginator.total_pages > 1 %}
<div class="row-fluid">
<div class="pagination">
<ul>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li><a href="{{ paginator.previous_page_path | relative_url }}">
<i class="icon-angle-left"></i>
</a></li>
{% else %}
<li><a href="/blog/{{paginator.previous_page}}"><i class="icon-angle-left"></i></a></li>
{% endif %}
{% else %}
<li class="disabled"><span><i class="icon-angle-left"></i></span></li>
{% endif %}
{% if paginator.page == 1 %}
<li class="active"><span>1</span></li>
{% else %}
<li><a href="/blog/">1</a></li>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<li class="active"><span>{{count}}</span></li>
{% else %}
<li><a href="/blog/{{count}}">{{count}}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li><a href="/blog/{{paginator.next_page}}"><i class="icon-angle-right"></i></a></li>
{% else %}
<li class="disabled"><span><i class="icon-angle-right"></i></span></li>
{% endif %}
</ul>
</div>
</div>
{% endif %}
</div>