# File lib/jekyll/generators/pagination.rb, line 58 def self.calculate_pages(all_posts, per_page) (all_posts.size.to_f / per_page.to_i).ceil end