A Maglev site is referenced by a
You can't create a site without a theme.
The MIT version of Maglev comes with a single theme and it's not possible to add another theme. To enable the multi-sites / multi-themes functionalities, you need the licensed version.
During the Maglev installation, a couple of files were added by our generators.
Rails app root
theme.ymlfile describes the definition (name, description, ...etc) of the theme.
Identifier of the theme. You can it but with caution, especially if you've got pages including sections of the previous theme
Name of the theme (displayed in the dev panel)
Description of the theme (displayed in the dev panel)
array of hashes (id/name)
List of section categories. Required by the editor for the section picker.
array of hashes
Default pages generated when a site is created. Specifically useful by the PRO version of Maglev
name: "Default theme"
description: "The default Maglev theme"
- name: Heroes
- name: Calls to action
- name: Carousels
- title: "Home page"
layout.html.erbis being rendered by the Maglev CMS functionality.
The minimal requirement is to have the following ERB code inside this file:
<%= raw render_maglev_sections site: @site, theme: @theme, page: @page, page_sections: @page_sections %>
This code is in charge of rendering the list of sections of a page.