Permalink
Browse files

minor change to fix page count.

  • Loading branch information...
1 parent 680927a commit 4baf95e26963fdb231e8ccc3841fcd7b21d5cac7 @mikevalstar committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/PublicPages.js
View
2 lib/PublicPages.js
@@ -49,7 +49,7 @@ PublicPages.prototype = {
query.count(function(err, postcount){
var totalpages = Math.ceil(postcount / perpage);
- var nextpage = totalpages > page ? page + 2 : false;
+ var nextpage = totalpages > page + 1 ? page + 2 : false;
var prevpage = page > 0 ? page : false;
var render_page = function(monthlist){

0 comments on commit 4baf95e

Please sign in to comment.