Class: Locomotive::Steam::Liquid::Drops::Page

Inherits:
Base show all
Defined in:
lib/locomotive/steam/liquid/drops/page.rb

Instance Method Summary collapse

Methods inherited from Base

#id, #initialize, liquify

Methods inherited from Liquid::Drop

#mounting_point, #site

Constructor Details

This class inherits a constructor from Locomotive::Steam::Liquid::Drops::Base

Instance Method Details



20
21
22
23
# File 'lib/locomotive/steam/liquid/drops/page.rb', line 20

def breadcrumbs
  # TODO
  ''
end

#childrenObject



10
11
12
13
14
# File 'lib/locomotive/steam/liquid/drops/page.rb', line 10

def children
  _children = @_source.children || []
  _children = _children.sort { |a, b| a.position.to_i <=> b.position.to_i }
  @children ||= liquify(*_children)
end

#content_typeObject



16
17
18
# File 'lib/locomotive/steam/liquid/drops/page.rb', line 16

def content_type
  ProxyCollection.new(@_source.content_type) if @_source.content_type
end