Return nil if num_page is nil

This commit is contained in:
Parker Moore 2013-04-09 20:25:43 +02:00
parent e5bf5aa09e
commit b9e7a31ab8
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ module Jekyll
# #
# Returns the the absolute URL for the pagination page # Returns the the absolute URL for the pagination page
def self.paginate_url(site_config, num_page) def self.paginate_url(site_config, num_page)
return "" if num_page.nil? return nil if num_page.nil?
path = paginate_path(site_config, num_page) path = paginate_path(site_config, num_page)
if path[0..1] == "/" if path[0..1] == "/"
path path