diff --git a/app/models/post.rb b/app/models/post.rb index e70d24b6..fe3fe7a8 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -76,7 +76,7 @@ class Post get_front_matter 'order' end - def is_ordered? + def ordered? !order.nil? end diff --git a/app/models/site.rb b/app/models/site.rb index c085d615..67f0f41e 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -204,7 +204,7 @@ class Site p.save end - true + posts_for(collection).map(&:ordered?).all? end alias :reorder_posts! :reorder_collection!