Fixed blog_url when user contains uppercase letters
This commit is contained in:
parent
498116b774
commit
a4236cae1b
2
Rakefile
2
Rakefile
@ -387,7 +387,7 @@ def blog_url(user, project)
|
|||||||
url = if File.exists?('source/CNAME')
|
url = if File.exists?('source/CNAME')
|
||||||
"http://#{IO.read('source/CNAME').strip}"
|
"http://#{IO.read('source/CNAME').strip}"
|
||||||
else
|
else
|
||||||
"http://#{user}.github.io"
|
"http://#{user.downcase}.github.io"
|
||||||
end
|
end
|
||||||
url += "/#{project}" unless project == ''
|
url += "/#{project}" unless project == ''
|
||||||
url
|
url
|
||||||
|
Loading…
Reference in New Issue
Block a user