---
layout: default
title: Blog
body_class: page--blog
generator: pagination
pagination:
max_per_page: 5
use:
- posts
<h1>Blog</h1>
{% for post in page.pagination.items %}
<article class="post">
<h2>{{ post.title }}</h2>
{% if post.blocks.excerpt %}
{{ post.blocks.excerpt | raw }}
{% endif %}
<a href="{{ post.url }}">Read more →</a>
</article>
{% endfor %}
{% if page.pagination.previous_page or page.pagination.next_page %}
<nav>
{% if page.pagination.previous_page %}
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer Items</a>
{% if page.pagination.next_page %}
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Items</a>
</nav>