20 lines
356 B
Ruby
20 lines
356 B
Ruby
module Locomotive
|
|
module Liquid
|
|
module Drops
|
|
class Site < Base
|
|
|
|
delegate :name, :seo_title, :meta_keywords, :meta_description, :to => '_source'
|
|
|
|
def index
|
|
@index ||= self._source.pages.root.first
|
|
end
|
|
|
|
def pages
|
|
@pages ||= liquify(*self._source.pages)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|