Fixed blog_url when user contains uppercase letters

This commit is contained in:
Daniel Escoz 2013-08-23 12:36:08 +02:00
parent 498116b774
commit a4236cae1b

View File

@ -387,7 +387,7 @@ def blog_url(user, project)
url = if File.exists?('source/CNAME')
"http://#{IO.read('source/CNAME').strip}"
else
"http://#{user}.github.io"
"http://#{user.downcase}.github.io"
end
url += "/#{project}" unless project == ''
url