mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Fix sort order and filter placement (#37904)
* Move filter inside asset filter * Change sort order
This commit is contained in:
parent
1fc6967631
commit
06c09133f8
@ -124,12 +124,12 @@ module Jekyll
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def case_insensitive_sort(input, key)
|
||||
return input unless input.is_a?(Array)
|
||||
input.sort_by { |item| item[key].to_s.downcase }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Liquid::Template.register_filter(Jekyll::AssetFilter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user