index.html 1.8 KB
Newer Older
D Sal's avatar
D Sal committed
1
---
's avatar
committed
2
layout: base
3
title: titles.allposts
D Sal's avatar
D Sal committed
4 5
---

's avatar
committed
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
<h1 class="text-center">{% t page.title %}</h1>

<div class="site-wrap">
    <!-- FULL WIDTH BLOCK -->
        <section class="container full">
            <div>
                {% for post in paginator.posts %}
                    <div class="post-lead info-block">
                        <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
                        <p>
                            {{ post.summary }}
                        </p>
                        <p>
                            <small>{% t blog.tagged %}:
                            {% for tag in post.tags %}
                            <a href="/blog/tags/{{ tag }}.html">[{{ tag }}]</a>
                            {% endfor %}
                            </small>
                        </p>
                    </div>
                {% endfor %}
            </div>
        </section>
    <!-- END FULL WIDTH BLOCK -->
</div>
D Sal's avatar
D Sal committed
31 32 33


{% if paginator.total_pages > 1 %}
's avatar
committed
34
<div class="text-center page-numbers"><p>
D Sal's avatar
D Sal committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
  {% 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 %}
's avatar
committed
56
</p></div>
serhack's avatar
serhack committed
57
{% endif %}