|
@ -56,6 +56,10 @@ module.exports= |
|
|
var pages = []; |
|
|
var pages = []; |
|
|
while(isValidPage(page, postsPerPage, totalPosts)) |
|
|
while(isValidPage(page, postsPerPage, totalPosts)) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if(page === 11) |
|
|
|
|
|
{ |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
if(page === currentPage) |
|
|
if(page === currentPage) |
|
|
{ |
|
|
{ |
|
|
pages.push({isCurrent: true, number: page}) |
|
|
pages.push({isCurrent: true, number: page}) |
|
|