layout: default
<div class=“posts”>
{% for post in paginator.posts %} {% include post-block.html show_excerpt=site.show_excerpt %} {% endfor %}
</div>
{% if paginator.total_pages > 1 %} <div class=“pagination”>
{% if paginator.previous_page %} <a href="{{ paginator.previous_page_path | relative_url }}">«</a> {% else %} <span>«</span> {% endif %} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %} <em>{{ page }}</em> {% elsif page == 1 %} <a href="/">{{ page }}</a> {% else %} <a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a> {% endif %} {% endfor %} {% if paginator.next_page %} <a href="{{ paginator.next_page_path | relative_url }}">»</a> {% else %} <span>»</span> {% endif %}
</div> {% endif %}