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.
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.