engine/lib/locomotive/liquid/drops/site.rb

20 lines
356 B
Ruby
Raw Normal View History

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
2011-02-27 16:14:14 +00:00
def pages
@pages ||= liquify(*self._source.pages)
2011-02-27 16:14:14 +00:00
end
end
end
end
end