mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-29 08:48:01 -05:00
Site#site_payload: sort collections by label
This commit is contained in:
@@ -28,7 +28,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def collections
|
||||
@site_collections ||= @obj.collections.values.map(&:to_liquid)
|
||||
@site_collections ||= @obj.collections.values.sort_by(&:label).map(&:to_liquid)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user