5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 07:01:42 +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!