Theme
A Maglev site is referenced by a theme
and a theme
includes sections.
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.
Please contact us for more details.
During the Maglev installation, a couple of files were added by our generators.
Definition file
The theme.yml
file describes the definition (name, description, ...etc) of the theme.
Quick example:
Template
The layout.html.erb
is being rendered by the Maglev CMS functionality.
The minimal requirement is to have the following ERB code inside this file:
This code is in charge of rendering the list of sections of a page.
Last updated