fix script_url_for url bug

This commit is contained in:
Hu Hao 2014-05-23 15:45:58 +08:00
parent dca0c7500f
commit 24fdbbbcfa

View File

@ -44,7 +44,7 @@ module Jekyll
end end
def script_url_for(gist_id, filename) def script_url_for(gist_id, filename)
url = "https://gist.githubusercontent.com/#{gist_id}.js" url = "https://gist.github.com/#{gist_id}.js"
url = "#{url}?file=#{filename}" unless filename.nil? or filename.empty? url = "#{url}?file=#{filename}" unless filename.nil? or filename.empty?
url url
end end