lib/jekyll-inline-svg.rb in jekyll-inline-svg-1.1.0 vs lib/jekyll-inline-svg.rb in jekyll-inline-svg-1.1.1
- old
+ new
@@ -99,10 +99,10 @@
end
mod.set(params)
return mod
end
def add_file_to_dependency(site, path, context)
- if context.registers[:page] && context.registers[:page].key("path")
+ if context.registers[:page] && context.registers[:page].key?("path")
site.regenerator.add_dependency(
site.in_source_dir(context.registers[:page]["path"]),
path
)
end