index.html 1.2 KB
Newer Older
D Sal's avatar
D Sal committed
1
2
---
layout: full-text
3
title: titles.allposts
D Sal's avatar
D Sal committed
4
5
6
7
8
9
10
11
---

{% for post in paginator.posts %}
  <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
  <p>
    {{ post.summary }}
    <small>{% t blog.tagged %}:
    {% for tag in post.tags %}
serhack's avatar
serhack committed
12
    <a href="/blog/tags/{{ tag }}.html">[{{ tag }}]</a>
D Sal's avatar
D Sal committed
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
    {% endfor %}
    </small>
  </p>
{% endfor %}


{% if paginator.total_pages > 1 %}
<div class="text-center page-numbers"><h4>
  {% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
  {% else %}
    <span>&laquo; Prev</span>
  {% endif %}

  {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
      <em>{{ page }}</em>
    {% elsif page == 1 %}
      <a href="{{ '/blog' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
    {% else %}
      <a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
    {% endif %}
  {% endfor %}

  {% if paginator.next_page %}
    <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
  {% else %}
    <span>Next &raquo;</span>
  {% endif %}
</h4></div>
serhack's avatar
serhack committed
43
{% endif %}