Try item#to_liquid before looking at the data
This commit is contained in:
parent
27c9fce15b
commit
ccee1b6a55
|
@ -247,7 +247,9 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def item_property(item, property)
|
def item_property(item, property)
|
||||||
if item.respond_to?(:data)
|
if item.respond_to?(:to_liquid)
|
||||||
|
item.to_liquid[property.to_s]
|
||||||
|
elsif item.respond_to?(:data)
|
||||||
item.data[property.to_s]
|
item.data[property.to_s]
|
||||||
else
|
else
|
||||||
item[property.to_s]
|
item[property.to_s]
|
||||||
|
|
Loading…
Reference in New Issue