fix pagination going to 404 if new post creates a new page

This commit is contained in:
barisusakli
2014-11-18 14:49:48 -05:00
parent 10680d47b0
commit 4f38a33702

View File

@@ -72,7 +72,7 @@ var async = require('async'),
return callback(err);
}
callback(null, Math.ceil(parseInt(postCount, 10) / settings.postsPerPage));
callback(null, Math.ceil((parseInt(postCount, 10) - 1) / settings.postsPerPage));
});
});
};