Site#site_payload: sort collections by label
This commit is contained in:
parent
f52a0e7200
commit
8af77643c5
|
@ -28,7 +28,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def collections
|
def collections
|
||||||
@site_collections ||= @obj.collections.values.map(&:to_liquid)
|
@site_collections ||= @obj.collections.values.sort_by(&:label).map(&:to_liquid)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue