-
Notifications
You must be signed in to change notification settings - Fork 2
/
blog.html
43 lines (39 loc) · 1.02 KB
/
blog.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
---
layout: page
title: david out of context
---
<div id="index">
<div id="posts">
{% for page in paginator.posts %}
{% if page.publish %}
<div class="post">
{% include title_row.html %}
{% if page.image %}
<img class="right img-polaroid" width="300px" src="{{ page.image }}"/>
{% endif %}
<div class="content">
{{ page.content }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div id="pagination">
<ul>
{% if paginator.next_page %}
<li class="next">
<a href="/page{{paginator.next_page}}" title="Next Page" class="next" rel="next">← Older Posts</a>
</li>
{% endif %}
{% if paginator.previous_page %}
<li class="prev">
{% if paginator.previous_page == 1 %}
<a href="/" title="Previous Page" class="prev">Newer Posts →</a>
{% else %}
<a href="/page{{paginator.previous_page}}" title="Previous Page" class="prev" rel="prev">Newer Posts →</a>
{% endif %}
</li>
{% endif %}
</ul>
</div>
</div>