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!