Class: Locomotive::Liquid::Drops::Site

Inherits:
Base
  • Object
show all
Defined in:
lib/locomotive/liquid/drops/site.rb

Instance Method Summary collapse

Methods inherited from Base

#id, #initialize, liquify

Constructor Details

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

Instance Method Details

#domainsObject



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

def domains
  @_source.domains
end

#indexObject



8
9
10
# File 'lib/locomotive/liquid/drops/site.rb', line 8

def index
  @index ||= @_source.pages.root.first
end

#pagesObject



12
13
14
# File 'lib/locomotive/liquid/drops/site.rb', line 12

def pages
  liquify(*self.scoped_pages)
end