layout: default
<div class=“posts”>
{% for post in paginator.posts %} <article class="post"> <h1 class="post-title"> <a href="{{ post.url | relative_url }}">{{ post.title }}</a> </h1> {{ post.content }} <footer class="post-footer"> <time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date: "%B %e, %Y" }}</time> </footer> </article> {% endfor %}
</div>
{% if paginator.next_page or paginator.previous_page %} <nav class=“pagination”>
{% if paginator.next_page %} <a class="pagination-item previous" href="{{ paginator.next_page_path | relative_url }}">Previous</a> {% endif %} {% if paginator.previous_page %} <a class="pagination-item next" href="{{ paginator.previous_page_path | relative_url }}">Next</a> {% endif %}
</nav> {% endif %}