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
#mounting_point, #site
Instance Method Details
#breadcrumbs ⇒ Object
20
21
22
23
|
# File 'lib/locomotive/steam/liquid/drops/page.rb', line 20
def breadcrumbs
''
end
|
#children ⇒ Object
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_type ⇒ Object
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
|