[help]
The technical documentation is a work in progress.
[main.top]
Regions in a Theme
What is a region?
In addition to its main content, a web page contains many other contents such as the site brand (site name, slogan, and logo), navigation aids (menus, links, and icons), formatted text, and images. You can see them in yellow on this page.
How to insert content into a region?
For example, let's see how the documentation side menu works.
Every page can have a configuration at the top. For the documentation page we have :
[pages]
regions.sidebar.first[]: """
**[link "/en/documentation" "Documentation" /]**
[submenu "/en/documentation" 1 ]
"""
On all pages inside documentation, we add to the region sidebar.first the code between """ after rendering.
input
**[link "/en/documentation" "Documentation" /]**
[submenu "/en/documentation" 1 ]
output
[main.bottom]