From f6dfb7b0b7b76c26134d275c97150f75a79f8f61 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 8 Oct 2023 14:29:56 +0200 Subject: [PATCH] pagination behaves well with empty results --- gawa/blog/templates/blog/browse.html | 3 ++- gawa/blog/views.py | 6 +++--- gawa/static/custom.js | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gawa/blog/templates/blog/browse.html b/gawa/blog/templates/blog/browse.html index 02b1c18..b21ad24 100644 --- a/gawa/blog/templates/blog/browse.html +++ b/gawa/blog/templates/blog/browse.html @@ -110,7 +110,7 @@
- {% if is_empty %} + {% if not posts %}
+ {% empty %} {% endfor %}