We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ea01cf commit 13e6357Copy full SHA for 13e6357
lib/jekyll-gist/gist_tag.rb
@@ -40,11 +40,9 @@ def determine_arguments(input)
40
end
41
42
def gist_script_tag(gist_id, filename = nil)
43
- if filename.empty?
44
- "<script src=\"https://gist.github.com/#{gist_id}.js\"> </script>"
45
- else
46
- "<script src=\"https://gist.github.com/#{gist_id}.js?file=#{filename}\"> </script>"
47
- end
+ url = "https://gist.github.com/#{gist_id}.js"
+ url = "#{url}?file=#{filename}" unless filename.empty?
+ "<script src=\"#{url}\"> </script>"
48
49
50
def gist_noscript_tag(gist_id, filename = nil)
0 commit comments