Update gist tag url to githubusercontent.com
This commit is contained in:
parent
ff1b10d0bc
commit
dca0c7500f
1 changed files with 2 additions and 2 deletions
|
@ -44,13 +44,13 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def script_url_for(gist_id, filename)
|
def script_url_for(gist_id, filename)
|
||||||
url = "https://gist.github.com/#{gist_id}.js"
|
url = "https://gist.githubusercontent.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
|
||||||
|
|
||||||
def get_gist_url_for(gist, file)
|
def get_gist_url_for(gist, file)
|
||||||
"https://gist.github.com/raw/#{gist}/#{file}"
|
"https://gist.githubusercontent.com/raw/#{gist}/#{file}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def cache(gist, file, data)
|
def cache(gist, file, data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue