diff --git a/web/themes/custom/geofresco/src/templates/layout/page.html.twig b/web/themes/custom/geofresco/src/templates/layout/page.html.twig index 1dacf9d..e30f30e 100644 --- a/web/themes/custom/geofresco/src/templates/layout/page.html.twig +++ b/web/themes/custom/geofresco/src/templates/layout/page.html.twig @@ -1,50 +1,155 @@ {% extends "@bulma/system/page.html.twig" %} + {# Limit the main content column to a max of 10 units at widescreen and above. @see system/page.html.twig in the Bulma theme. #} -{% - set page = page|merge({ - 'content_attributes': create_attribute().addClass([ - 'main-content', - 'column', - 'is-10-widescreen', - ]), - }) -%} - -{% if is_front %} +{% if not page.content_attributes %} {% set page = page|merge({ - 'navbar_branding': '', + 'content_attributes': create_attribute().addClass([ + 'main-content', + 'column', + 'is-10-widescreen', + ]), }) %} {% endif %} - -{% block header_and_search %} -{# Header hero region + search #} +{% block navbar %} +{# Add a new region #} +{% if page.header_user %}