From e99bdd07ac60196dc6f391c0fd77cd529c8444a5 Mon Sep 17 00:00:00 2001 From: Tim DuBois Date: Mon, 27 Aug 2018 21:37:50 +0200 Subject: [PATCH] Update pagination for test_site posts --- test_site/content/posts/_index.md | 1 + test_site/templates/page.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test_site/content/posts/_index.md b/test_site/content/posts/_index.md index cbb56093..e9f7069d 100644 --- a/test_site/content/posts/_index.md +++ b/test_site/content/posts/_index.md @@ -3,4 +3,5 @@ title = "Posts" paginate_by = 2 template = "section_paginated.html" insert_anchor_links = "left" +sort_by = "date" +++ diff --git a/test_site/templates/page.html b/test_site/templates/page.html index 25e0455d..8f4373af 100644 --- a/test_site/templates/page.html +++ b/test_site/templates/page.html @@ -3,6 +3,6 @@ {% block content %} {{ page.content | safe }} - {% if page.previous %}Previous article: {{ page.previous.permalink }}{% endif %} - {% if page.next %}Next article: {{ page.next.permalink }}{% endif %} + {% if page.earlier %}Previous article: {{ page.earlier.permalink }}{% endif %} + {% if page.later %}Next article: {{ page.later.permalink }}{% endif %} {% endblock content %}