Fixed an issue with pagination of posts

Since "static" pages are now stored in the database, the method that
counted the number of posts to paginate on the front page broke because
it was counting pages too. It's now fixed.