-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (57 loc) · 2.28 KB
/
index.html
File metadata and controls
57 lines (57 loc) · 2.28 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
---
layout: master
---
<div>
<div class="hero-unit">
<h1 class="main-title"><span>{{ site.title }}</span> <small>{{ site.subtitle }}</small></h1>
<p itemprop="description">{{ site.description }}</p>
<p><a class="btn btn-large btn-primary" href="/README">Learn more »</a></p>
</div>
<hr />
{% if paginator %}
<div class="row">{% for page in paginator.posts %}
<div class="post span4">
<h2><a href="{{ page.url }}">{{ page.title }}</a></h2>
<p>{%if page.description %}{% else %}{{ page.content | strip_html | truncatewords:'30' }}{% endif %}</p>
<p><a class="btn" href="{{ page.url }}">Read More »</a></p>
</div>
{% endfor %}
</div>
<div class="pagination pagination-centered pagination-small">
<ul>
{% if paginator.previous_page %}
<li><a href="/" title="First Page"><i class="icon-fast-backward"> </i></a></li>
<li>
<a href="/{% if paginator.previous_page > 1 %}page{{ paginator.previous_page }}{% endif %}" title="Previous Page">
<i class="icon-step-backward"> </i>
</a>
</li>
{% else %}
<li class="disabled"><span title="First Page"><i class="icon-fast-backward"> </i></span></li>
<li class="disabled"><span title="Previous Page"><i class="icon-step-backward"> </i></span></li>
{% endif %}
{% for count in (1..paginator.total_pages) %}
{% if count == paginator.page %}
<li class="active"><span>{{ count }}</span></li>
{% else %}
<li><a href="/{% if count > 1 %}page{{ count }}{% endif %}">{{ count }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.total_pages < 5 %}
<!-- Adding some dummy filler page refs -->
{% capture filler %}{{ paginator.total_pages | plus:'1' }}{% endcapture %}
{% for count in (filler..5) %}
<li class="disabled"><span>{{ count }}</span></li>
{% endfor %}
{% endif %}
{% if paginator.next_page %}
<li><a href="/page{{ paginator.next_page }}" title="Next Page"><i class="icon-step-forward"> </i></a></li>
<li><a href="/page{{ paginator.total_pages }}" title="Last Page"><i class="icon-fast-forward"> </i></a></li>
{% else %}
<li class="disabled"><span title="Next Page"><i class="icon-step-forward"> </i></span></li>
<li class="disabled"><span title="Last Page"><i class="icon-fast-forward"> </i></span></li>
{% endif %}
</ul>
</div>
{% endif %}
</div>