Commit bfcceb23 authored by Sylvester Keil's avatar Sylvester Keil
Browse files

update liquid variable resolution

see #84
parent 9976a0ee
......@@ -444,7 +444,7 @@ module Jekyll
# We need to do this every time, to support for loops,
# where the context can change for each invocation.
Array(@keys).map do |key|
context.send(:resolve, key) || key
context[key] || key
......@@ -452,7 +452,7 @@ module Jekyll
return unless string
string.gsub(/{{\s*([\w\.]+)\s*}}/) do |match|
context.send(:resolve, $1) || match
context[$1] || match
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment