Use pagination

This commit is contained in:
Oliver Davies 2015-06-15 09:37:37 +01:00
parent a840a380a3
commit 176d13e738

View file

@ -2,13 +2,14 @@
layout: default
title: Blog
body_class: page--blog
generator: pagination
use:
- posts
---
<h1>Blog</h1>
<ul>
{% for post in data.posts %}
{% for post in page.pagination.items %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>