Use pagination
This commit is contained in:
parent
a840a380a3
commit
176d13e738
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue