Join the path with baseurl in Pager.paginate_url

This commit is contained in:
Parker Moore 2013-04-09 20:26:08 +02:00
parent b9e7a31ab8
commit 9c296f04a9
1 changed files with 1 additions and 5 deletions

View File

@ -93,11 +93,7 @@ module Jekyll
def self.paginate_url(site_config, num_page)
return nil if num_page.nil?
path = paginate_path(site_config, num_page)
if path[0..1] == "/"
path
else
"/#{path}"
end
File.join(site_config["baseurl"], path)
end
# Initialize a new Pager.