Sha256: 3235f3e5faf96659d8bf93fabf2ac1df10f56a0c918f9409dc933a2526d9beda

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

module Spina
  module DefaultTheme
    include ::ActiveSupport::Configurable

    config_accessor :title, :page_parts, :view_templates, :layout_parts, :custom_pages, :plugins, :structures

    self.title = "Default theme"

    self.page_parts = [{ 
      name: 'content', 
      title: 'Content', 
      page_partable_type: "Spina::Text" 
    }]

    self.structures = []
    self.layout_parts = []
    self.custom_pages = []
    self.plugins = []

    self.view_templates = {
      'homepage' => {
        title: 'Homepage',
        page_parts: ['content']
      },
      'show' => {
        title: 'Default',
        description: 'A simple page',
        usage: 'Use for your content',
        page_parts: ['content']
      }
    }
  end
end

theme = Spina::Theme.new
theme.name = "Default"
theme.config = Spina::DefaultTheme.config
Spina.register_theme(theme)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-0.6.24 test/dummy/config/initializers/themes/default.rb
spina-0.6.23 test/dummy/config/initializers/themes/default.rb