diff --git a/core/modules/system/templates/page.html.twig b/core/modules/system/templates/page.html.twig index ff7c010..ab732dc 100644 --- a/core/modules/system/templates/page.html.twig +++ b/core/modules/system/templates/page.html.twig @@ -26,9 +26,6 @@ * slogan has been disabled in theme settings. * * Navigation: - * - main_menu: The Main menu links for the site, if they have been configured. - * - secondary_menu: The Secondary menu links for the site, if they have been - * configured. * - breadcrumb: The breadcrumb trail for the current page. * * Page content (in order of occurrence in the default page.html.twig): @@ -50,6 +47,9 @@ * * Regions: * - page.header: Items for the header region. + * - page.main_menu: The Main menu links for the site, if they have been configured. + * - page.secondary_menu: The Secondary menu links for the site, if they have been + * configured. * - page.highlighted: Items for the highlighted content region. * - page.help: Dynamic help text, mostly for admin pages. * - page.content: The main content of the current page. @@ -97,14 +97,19 @@ {% endif %} + {% if page.secondary_menu %} + + {% endif %} + {{ page.header }} - {% if main_menu or secondary_menu %} + {% if page.main_menu %} {% endif %} diff --git a/core/themes/bartik/templates/page.html.twig b/core/themes/bartik/templates/page.html.twig index 1af8907..c0cd40a 100644 --- a/core/themes/bartik/templates/page.html.twig +++ b/core/themes/bartik/templates/page.html.twig @@ -33,9 +33,6 @@ * added to make the site slogan visually hidden, but still accessible. * * Navigation: - * - main_menu: The Main menu links for the site, if they have been configured. - * - secondary_menu: The Secondary menu links for the site, if they have been - * configured. * - breadcrumb: The breadcrumb trail for the current page. * * Page content (in order of occurrence in the default page.html.twig): @@ -57,6 +54,9 @@ * * Regions: * - page.header: Items for the header region. + * - page.main_menu: The Main menu links for the site, if they have been configured. + * - page.secondary_menu: The Secondary menu links for the site, if they have been + * configured. * - page.featured: Items for the featured region. * - page.highlighted: Items for the highlighted content region. * - page.help: Dynamic help text, mostly for admin pages. @@ -85,11 +85,9 @@ #}
-