Add size property to group_by result
This commit is contained in:
parent
03a7e22b7e
commit
7542ab51b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue