aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-08-18 14:30:36 -0400
committerBrandon Mathis <brandon@imathis.com>2011-08-18 14:30:59 -0400
commitcf31601d4be22ebc8ef1c5259a2b2bbd65f147f5 (patch)
tree56d49eaf21d95402dd0cf1b13bd1d545ae510cab /plugins
parentef4a42f9774ca36c8cf9921aadda93572c26fba6 (diff)
downloadmy_new_personal_website-cf31601d4be22ebc8ef1c5259a2b2bbd65f147f5.tar.xz
my_new_personal_website-cf31601d4be22ebc8ef1c5259a2b2bbd65f147f5.zip
reordered arguments in pagination
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pagination.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pagination.rb b/plugins/pagination.rb
index 001ddd47..a318754e 100644
--- a/plugins/pagination.rb
+++ b/plugins/pagination.rb
@@ -37,7 +37,7 @@ module Jekyll
dir = ((page_dir_config || page_dir) + '/').sub(/^\/+/, '')
(1..pages).each do |num_page|
- pager = Pager.new(site.config, num_page, all_posts, pages, page_dir+'/', '/'+dir)
+ pager = Pager.new(site.config, num_page, all_posts, page_dir+'/', '/'+dir, pages)
if num_page > 1
newpage = Page.new(site, site.source, page_dir, page.name)
newpage.pager = pager
@@ -80,7 +80,7 @@ module Jekyll
# all_posts - The Array of all the site's Posts.
# num_pages - The Integer number of pages or nil if you'd like the number
# of pages calculated.
- def initialize(config, page, all_posts, num_pages = nil, index_dir, pagination_dir)
+ def initialize(config, page, all_posts, index_dir, pagination_dir, num_pages = nil)
@page = page
@per_page = config['paginate'].to_i
@page_dir = pagination_dir + 'page/'