module Jekyll::Filters

def where(input, property, value)

Returns the filtered array of objects

value - desired value
property - property within each object to filter by
input - the object array

Filter an array of objects
def where(input, property, value)
  return input unless input.is_a?(Enumerable)
  input = input.values if input.is_a?(Hash)
  input.select { |object| item_property(object, property).to_s == value.to_s }
end