Sha256: 0921610549ac8c64ca54cbb4199b091e1c55f7a2598d191d49b9ee2d2dc02123

Contents?: true

Size: 423 Bytes

Versions: 20

Compression:

Stored size: 423 Bytes

Contents

module Smithy
  class Site
    include Singleton
    cattr_accessor :title

    class << self
      def title
        @@title
      end

      def title=(str)
        @@title = str
      end
    end

    def title
      self.class.title
    end

    def root
      @root ||= Smithy::Page.root
    end

    def to_liquid
      {
        'title' => self.title,
        'root' => self.root.to_liquid
      }
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
smithycms-0.8.1 app/models/smithy/site.rb
smithycms-0.7.3 app/models/smithy/site.rb
smithycms-0.7.2 app/models/smithy/site.rb
smithycms-0.7.1 app/models/smithy/site.rb
smithycms-0.7.0 app/models/smithy/site.rb
smithycms-0.6.10 app/models/smithy/site.rb
smithycms-0.5.99.3 app/models/smithy/site.rb
smithycms-0.6.9 app/models/smithy/site.rb
smithycms-0.6.7 app/models/smithy/site.rb
smithycms-0.6.6 app/models/smithy/site.rb
smithycms-0.6.5 app/models/smithy/site.rb
smithycms-0.6.4 app/models/smithy/site.rb
smithycms-0.6.3 app/models/smithy/site.rb
smithycms-0.5.99.2 app/models/smithy/site.rb
smithycms-0.5.99.1 app/models/smithy/site.rb
smithycms-0.5.99 app/models/smithy/site.rb
smithycms-0.6.2 app/models/smithy/site.rb
smithycms-0.6.1 app/models/smithy/site.rb
smithycms-0.5.2 app/models/smithy/site.rb
smithycms-0.6.0 app/models/smithy/site.rb