added configurable limit for number of blog posts in each page