Add size property to group_by result

This commit is contained in:
Tim Wisniewski 2016-02-20 20:30:38 -05:00
parent 03a7e22b7e
commit 7542ab51b7
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ module Jekyll
input.group_by do |item|
item_property(item, property).to_s
end.inject([]) do |memo, i|
memo << { "name" => i.first, "items" => i.last }
memo << { "name" => i.first, "items" => i.last, "size" => i.last.size }
end
else
input