Adjust css a bit more
[blog.git] / index.html
1 ---
2 layout: default
3 title: Ganneff's Little Blog
4 ---
5
6 {% for post in paginator.posts %}
7
8 <article class="post">
9 {% if post.external-url %}
10 <h1>
11 <a href="{{ post.external-url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>'}}</a>
12 <a class="anchor" href="{{ post.url }}"><i class="icon-anchor"></i></a>
13 </h1>
14 {% else %}
15 <h1><a href="{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>'}}</a></h1>
16 {% endif %}
17
18 <div class="post-content">{{ post.content }}</div>
19
20 </article>
21
22 {% endfor %}
23
24
25 {% if paginator.total_pages > 1 %}
26 <div class="postnavigation">
27
28 {% if paginator.previous_page %}
29 {% if paginator.page == 2 %}
30 <a class="prev left" href="/">&larr; Newer</a>
31 {% else %}
32 <a class="prev left" href="{{paginator.previous_page_path}}">&larr; Newer</a>
33 {% endif %}
34 {% else %}
35 <span class="nope left">&larr; Newer</span>
36 {% endif %}
37
38 <span class="pages">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
39
40 {% if paginator.next_page %}
41 <a class="next right" href="{{paginator.next_page_path}}">Older &rarr;</a>
42 {% else %}
43 <span class="nope right">Older &rarr;</span>
44 {% endif %}
45
46 </div>
47 {% endif %}