Merge pull request #389 from Libbum/pagination

Update pagination for test_site posts
This commit is contained in:
Vincent Prouillet 2018-09-02 21:34:16 +02:00 committed by GitHub
commit 5ed489d4f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -25,8 +25,7 @@ draft: Bool;
components: Array<String>; components: Array<String>;
permalink: String; permalink: String;
summary: String?; summary: String?;
tags: Array<String>; taxonomies: HashMap<String, Array<String>>;
category: String?;
extra: HashMap<String, Any>; extra: HashMap<String, Any>;
// Naive word count, will not work for languages without whitespace // Naive word count, will not work for languages without whitespace
word_count: Number; word_count: Number;

View file

@ -3,4 +3,5 @@ title = "Posts"
paginate_by = 2 paginate_by = 2
template = "section_paginated.html" template = "section_paginated.html"
insert_anchor_links = "left" insert_anchor_links = "left"
sort_by = "date"
+++ +++

View file

@ -3,6 +3,6 @@
{% block content %} {% block content %}
{{ page.content | safe }} {{ page.content | safe }}
{% if page.previous %}Previous article: {{ page.previous.permalink }}{% endif %} {% if page.earlier %}Previous article: {{ page.earlier.permalink }}{% endif %}
{% if page.next %}Next article: {{ page.next.permalink }}{% endif %} {% if page.later %}Next article: {{ page.later.permalink }}{% endif %}
{% endblock content %} {% endblock content %}