diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 0cf5fa2..092eadf 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1410,6 +1410,10 @@ function template_preprocess_maintenance_page(&$variables) { $variables['logo'] = theme_get_setting('logo.url'); $variables['site_name'] = $site_config->get('name'); $variables['site_slogan'] = $site_config->get('slogan'); + + // Maintenance page and install page need page title in variable because there + // are no blocks. + $variables['title'] = $variables['page']['#title']; } /** diff --git a/core/modules/system/templates/install-page.html.twig b/core/modules/system/templates/install-page.html.twig index 9c1ee12..dd7a0f6 100644 --- a/core/modules/system/templates/install-page.html.twig +++ b/core/modules/system/templates/install-page.html.twig @@ -27,6 +27,9 @@
+ {% if page.title %} +

{{ page.title }}

+ {% endif %} {{ page.highlighted }} {{ page.content }}
diff --git a/core/modules/system/templates/maintenance-page.html.twig b/core/modules/system/templates/maintenance-page.html.twig index 67967ef..538d192 100644 --- a/core/modules/system/templates/maintenance-page.html.twig +++ b/core/modules/system/templates/maintenance-page.html.twig @@ -32,6 +32,10 @@
+ {% if page.title %} +

{{ page.title }}

+ {% endif %} + {{ page.highlighted }} {{ page.content }} diff --git a/core/themes/classy/templates/layout/maintenance-page.html.twig b/core/themes/classy/templates/layout/maintenance-page.html.twig index 5e3b73c..a7f386b 100644 --- a/core/themes/classy/templates/layout/maintenance-page.html.twig +++ b/core/themes/classy/templates/layout/maintenance-page.html.twig @@ -35,6 +35,10 @@
+ {% if page.title %} +

{{ page.title }}

+ {% endif %} + {{ page.highlighted }} {{ page.content }} diff --git a/core/themes/seven/templates/install-page.html.twig b/core/themes/seven/templates/install-page.html.twig index 8c2828f..b7508be 100644 --- a/core/themes/seven/templates/install-page.html.twig +++ b/core/themes/seven/templates/install-page.html.twig @@ -24,6 +24,9 @@ {% endif %}
+ {% if page.title %} +

{{ page.title }}

+ {% endif %} {{ page.highlighted }} {{ page.content }}
diff --git a/core/themes/seven/templates/maintenance-page.html.twig b/core/themes/seven/templates/maintenance-page.html.twig index 8966ddc..2286e88 100644 --- a/core/themes/seven/templates/maintenance-page.html.twig +++ b/core/themes/seven/templates/maintenance-page.html.twig @@ -24,6 +24,9 @@ {% endif %}
+ {% if title %} +

{{ title }}

+ {% endif %} {{ page.highlighted }} {{ page.content }}