Sha256: 077344ba004d0d6f4ab8bf670d7a7391663f79570072992ee9076ff0f4f2ecc3

Contents?: true

Size: 234 Bytes

Versions: 9

Compression:

Stored size: 234 Bytes

Contents

class PageSidebar < Sidebar
  display_name 'Page'
  description 'Show pages for this blog'

  setting :maximum_pages, 10

  def pages
    @pages ||= Page.published.order(:title)
  end
end

SidebarRegistry.register_sidebar PageSidebar

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
publify_core-9.1.0 app/models/page_sidebar.rb
publify_core-9.0.1 app/models/page_sidebar.rb
publify_core-9.0.0 app/models/page_sidebar.rb
publify_core-9.0.0.pre6 app/models/page_sidebar.rb
publify_core-9.0.0.pre5 app/models/page_sidebar.rb
publify_core-9.0.0.pre4 app/models/page_sidebar.rb
publify_core-9.0.0.pre3 app/models/page_sidebar.rb
publify_core-9.0.0.pre2 app/models/page_sidebar.rb
publify_core-9.0.0.pre1 app/models/page_sidebar.rb