5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-01 23:24:16 +00:00

comprobar que se hayan ordenado

This commit is contained in:
f 2018-04-27 15:59:51 -03:00
parent a09f049c20
commit 442a75da5d
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class Post
get_front_matter 'order'
end
def is_ordered?
def ordered?
!order.nil?
end

View file

@ -204,7 +204,7 @@ class Site
p.save
end
true
posts_for(collection).map(&:ordered?).all?
end
alias :reorder_posts! :reorder_collection!