From e5bf5aa09e1ec5d554661ee1a7066abc276bdc93 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 9 Apr 2013 20:25:33 +0200 Subject: [PATCH] Documentation for Pager.paginate_url --- lib/jekyll/generators/pagination.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/jekyll/generators/pagination.rb b/lib/jekyll/generators/pagination.rb index bd797e4f..1a239ce9 100644 --- a/lib/jekyll/generators/pagination.rb +++ b/lib/jekyll/generators/pagination.rb @@ -84,6 +84,12 @@ module Jekyll format.sub(':num', num_page.to_s) end + # Static: Return the URL for the pagination path of the page + # + # site_config - the site config + # num_page - the pagination page number + # + # Returns the the absolute URL for the pagination page def self.paginate_url(site_config, num_page) return "" if num_page.nil? path = paginate_path(site_config, num_page)