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