Search on first post

main
Bob Mottram 2022-11-20 17:22:32 +00:00
parent e40115e7d1
commit 09396e1df3
1 changed files with 5 additions and 3 deletions

View File

@ -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: