layout: default
<div class=“posts”>
{% for post in paginator.posts %} <div class="post"> <h1 class="post-title"> <a href="{{ post.url | relative_url }}"> {{ post.title }} </a> </h1> <span class="post-date">{{ post.date | date_to_string }}</span> {{ post.content }} </div> {% endfor %}
</div>
<div class=“pagination”>
{% if paginator.previous_page %} <a class="pagination-item newer" href="{{ paginator.previous_page_path }}" class="previous">Newer</a> {% else %} <span class="pagination-item newer">Newer</span> {% endif %} {% if paginator.next_page %} <a class="pagination-item older" href="{{ paginator.next_page_path }}">Older</a> {% else %} <span class="pagination-item older">Older</span> {% endif %}
</div>