This commit is contained in:
Barış Soner Uşaklı
2021-04-08 13:02:40 -04:00
committed by Barış Soner Uşaklı
parent 7b98fab95c
commit 14e211fb68

View File

@@ -118,7 +118,7 @@ function calculateStartStop(page, postIndex, settings) {
let startSkip = 0;
if (!settings.usePagination) {
if (postIndex !== 0) {
if (postIndex > 1) {
page = 1;
}
startSkip = Math.max(0, postIndex - Math.ceil(settings.postsPerPage / 2));