lib/bunto/drops/site_drop.rb in bunto-3.0.0 vs lib/bunto/drops/site_drop.rb in bunto-3.2.1

- old
+ new

@@ -22,14 +22,16 @@ def posts @site_posts ||= @obj.posts.docs.sort { |a, b| b <=> a } end def html_pages - @site_html_pages ||= @obj.pages.select { |page| page.html? || page.url.end_with?("/") } + @site_html_pages ||= @obj.pages.select do |page| + page.html? || page.url.end_with?("/") + end end def collections - @site_collections ||= @obj.collections.values.map(&:to_liquid) + @site_collections ||= @obj.collections.values.sort_by(&:label).map(&:to_liquid) end private def_delegator :@obj, :config, :fallback_data end