Don't check if site URL is absolute if it is nil (#7498)

Merge pull request 7498
This commit is contained in:
Ashwin Maroli 2019-03-15 22:23:40 +05:30 committed by jekyllbot
parent 3c231a41d2
commit 7ddaa9ffa1
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ module Jekyll
end
def url_absolute(url)
return true if Addressable::URI.parse(url).absolute?
return true if url.is_a?(String) && Addressable::URI.parse(url).absolute?
Jekyll.logger.warn "Warning:", "Your site URL does not seem to be absolute, "\
"check the value of `url` in your config file."