Sha256: 6f6639fa34a948e4f57a3502f0e8cf09c178926f1c6439254f481cfa4aa4ebfb

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

module Smithy
  class Site
    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

5 entries across 5 versions & 1 rubygems

Version Path
smithycms-0.5.1 app/models/smithy/site.rb
smithycms-0.5.0 app/models/smithy/site.rb
smithycms-0.4.5 app/models/smithy/site.rb
smithycms-0.4.4 app/models/smithy/site.rb
smithycms-0.4.3 app/models/smithy/site.rb