Skip to content
Snippets Groups Projects
Commit 566ae5b6 authored by Thomas Wood's avatar Thomas Wood
Browse files

Add previous/next buttons to news entries

parent 6a3356f9
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,11 @@ defaults:
layout: page
menu: false
menu_order: 9
-
scope:
type: posts
values:
layout: post
-
scope:
path: ""
......
......@@ -12,4 +12,11 @@ layout: default
{{ content }}
</div>
<nav>
<ul class="pager">
{% if page.previous %}<li><a href="{{ page.previous.url }}">Previous</a></li>{% endif %}
{% if page.next %}<li><a href="{{ page.next.url }}">Next</a></li>{% endif %}
</ul>
</nav>
</article>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment