Sha256: 21f86ec35e6c9055e9e9625b823f5eb967f69084f38abea5191b23c7f9eecf75

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

module Locomotive
  module Wagon
    module Liquid
      module Drops
        class Site < Base
          include Scopeable

          delegate :name, :seo_title, :meta_description, :meta_keywords, :to => '_source'

          def index
            @index ||= self.mounting_point.pages['index']
          end

          def pages
            @pages ||= liquify(*apply_scope(self.mounting_point.pages.values))
          end

        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
locomotivecms_wagon-1.2.2 lib/locomotive/wagon/liquid/drops/site.rb
locomotivecms_wagon-1.2.1 lib/locomotive/wagon/liquid/drops/site.rb
locomotivecms_wagon-1.2.0 lib/locomotive/wagon/liquid/drops/site.rb