From 09396e1df3a21ba3bd3463a8faf987d22d3ac7ab Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Nov 2022 17:22:32 +0000 Subject: [PATCH] Search on first post --- posts.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/posts.py b/posts.py index 62120c257..5f98b4a5c 100644 --- a/posts.py +++ b/posts.py @@ -4051,9 +4051,11 @@ def _create_box_indexed(recent_posts_cache: {}, continue # Skip through any posts previous to the current page - if total_posts_count < int((page_number - 1) * items_per_page): - total_posts_count += 1 - continue + if not first_post_id: + if total_posts_count < \ + int((page_number - 1) * items_per_page): + total_posts_count += 1 + continue # if this is a full path then remove the directories if '/' in post_filename: