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.
2 parents 024f580 + 6edd2ba commit c606773Copy full SHA for c606773
lib/jekyll-gist/gist_tag.rb
@@ -5,10 +5,10 @@ class GistTag < Liquid::Tag
5
def render(context)
6
if tag_contents = determine_arguments(@markup.strip)
7
gist_id, filename = tag_contents[0], tag_contents[1]
8
- if context[gist_id]
+ if context.has_key?(gist_id)
9
gist_id = context[gist_id]
10
end
11
- if context[filename]
+ if context.has_key?(filename)
12
filename = context[filename]
13
14
gist_script_tag(gist_id, filename)
0 commit comments