From 24cceed5595a079d243c9a7408347c9c866f0b34 Mon Sep 17 00:00:00 2001 From: meow Date: Mon, 18 Nov 2019 17:38:55 +0500 Subject: [PATCH] now, pagination shows next 5 page links --- templates/macros/pagination.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html index 077cc5a..ba4379e 100644 --- a/templates/macros/pagination.html +++ b/templates/macros/pagination.html @@ -4,8 +4,11 @@ « Previous {% else %} « Previous - {% endif %} - | {{ pagination.page }} | + {% endif %} | + {{ pagination.page }} | + {% for page in range(pagination.page + 1, pagination.pages + 1)[:5] %} + {{ page }} | + {% endfor %} {% if pagination.has_next %} Next » {% else %}