-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (47 loc) · 1.5 KB
/
index.html
File metadata and controls
50 lines (47 loc) · 1.5 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
---
layout: default
---
{% for post in paginator.posts limit: 3 sort_by: title %}
<div class="row-fluid">
<div class="span12">
<h5 style="line-height: 0px;">{{ post.date | date_to_long_string | upcase }}</h5>
<h2 style="line-height: 25px;">{{ post.title }}</h2>
<p>
<!--<em><small style="margin-top: 0px;">Read this in about {{ post.content | reading_time }}</small></em>-->
{{ post.excerpt | markdownify | truncatewords: 150 | split: '...' | first }}
<a href="{{ post.url }}">…Read More</a>
<hr>
</p>
</div>
</div>
{% endfor %}
<div class="row-fluid">
<div class="span12">
<div class="pagination">
<ul>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li><a href="/">Prev</a></li>
{% else %}
<li><a href="/page{{ paginator.previous_page }}">Prev</a></li>
{% endif %}
{% endif %}
{% if paginator.page == 1 %}
<li><span class="active">1</span></li>
{% else %}
<li><a href="/">1</a></li>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<li><span class="active">{{ count }}</span></li>
{% else %}
<li><a href="/page{{ count }}">{{ count }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li><a href="/page{{ paginator.next_page }}">Next</a></li>
{% endif %}
</ul>
</div>
</div>
</div>