diff --git a/posts.py b/posts.py index de8c95353..329ec02bb 100644 --- a/posts.py +++ b/posts.py @@ -2547,8 +2547,7 @@ def createBoxIndexed(recentPostsCache: {}, postFilename = indexFile.readline() if not postFilename: - postsCtr += 1 - continue + break # Skip through any posts previous to the current page if postsCtr < int((pageNumber - 1) * itemsPerPage):