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 layout: default
title: Blog title: Blog
body_class: page--blog body_class: page--blog
generator: pagination
use: use:
- posts - posts
--- ---
<h1>Blog</h1> <h1>Blog</h1>
<ul> <ul>
{% for post in data.posts %} {% for post in page.pagination.items %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li> <li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>