Sha256: fb90820ad506750ca0254656e3696fbc49bb8ab468a4cb19382d479341a05931
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
module Locomotive module Steam module Liquid module Drops class Site < I18nBase delegate :name, :domains, :seo_title, :meta_keywords, :meta_description, to: :@_source def index @index ||= repository.root.to_liquid end def pages @pages ||= liquify(*self.scoped_pages) end protected def repository @context.registers[:services].repositories.page end def scoped_pages conditions = @context['with_scope'] || {} conditions['slug.ne'] = '404' repository.all(conditions) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms_steam-1.0.0.pre.alpha.1 | lib/locomotive/steam/liquid/drops/site.rb |
locomotivecms_steam-1.0.0.pre.alpha | lib/locomotive/steam/liquid/drops/site.rb |