Sha256: e78a47683785b7b2b9ef664cec36d41eee94d74e611c96e370651494e5f18251

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

module Locomotive
  module Steam
    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
            liquify(*apply_scope(self.mounting_point.pages.values))
          end

          def domains
            @_source.domains
          end

        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotivecms_steam-0.1.1 lib/locomotive/steam/liquid/drops/site.rb
locomotivecms_steam-0.1.0 lib/locomotive/steam/liquid/drops/site.rb