Sha256: 848b0f9b2e0b54dc673e1bb4e96aeadc5e2ce21d522cbe449ee618055ebb1e2a
Contents?: true
Size: 987 Bytes
Versions: 8
Compression:
Stored size: 987 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'] } } self.custom_pages = [ { name: 'homepage', title: 'Homepage', deletable: false, view_template: 'homepage' } ] end end theme = Spina::Theme.new theme.name = "default" theme.config = Spina::DefaultTheme.config Spina.register_theme(theme)
Version data entries
8 entries across 8 versions & 1 rubygems