diff --git a/core/themes/classy/templates/layout/page.html.twig b/core/themes/classy/templates/layout/page.html.twig index bc8795d..6f1e05b 100644 --- a/core/themes/classy/templates/layout/page.html.twig +++ b/core/themes/classy/templates/layout/page.html.twig @@ -19,11 +19,6 @@ * Site identity: * - front_page: The URL of the front page. Use this instead of base_path when * linking to the front page. This includes the language domain or prefix. - * - logo: The url of the logo image, as defined in theme settings. - * - site_name: The name of the site. This is empty when displaying the site - * name has been disabled in the theme settings. - * - site_slogan: The slogan of the site. This is empty when displaying the site - * slogan has been disabled in theme settings. * * Page content (in order of occurrence in the default page.html.twig): * - title_prefix: Additional output populated by modules, intended to be @@ -41,6 +36,8 @@ * comment/reply/12345). * * Regions: + * - page.header_first: Items for the first header region. + * - page.header_second: Items for the second header region. * - page.header: Items for the header region. * - page.messages: Status and error messages. Should be displayed prominently. * - page.primary_menu: Items for the primary menu region. @@ -60,32 +57,8 @@
- {% if logo %} - - {{ 'Home'|t }} - - {% endif %} - - {% if site_name or site_slogan %} -
- - {# Use h1 when the content title is empty #} - {% if title %} - - {{ site_name }} - - {% else %} -

- {{ site_name }} -

- {% endif %} - - {% if site_slogan %} -
{{ site_slogan }}
- {% endif %} -
{# ./name-and-slogan #} - {% endif %} - + {{ page.header_first }} + {{ page.header_second }} {{ page.header }}
diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 621cf82..e0687e7 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -146,16 +146,20 @@ function seven_element_info_alter(&$type) { * Implements hook_preprocess_install_page(). */ function seven_preprocess_install_page(&$variables) { + $site_config = \Drupal::config('system.site'); // Seven has custom styling for the install page. $variables['#attached']['library'][] = 'seven/install-page'; + $variables['site_name'] = String::checkPlain($site_config->get('name')); } /** * Implements hook_preprocess_maintenance_page(). */ function seven_preprocess_maintenance_page(&$variables) { + $site_config = \Drupal::config('system.site'); // Seven has custom styling for the maintenance page. $variables['#attached']['library'][] = 'seven/maintenance-page'; + $variables['site_name'] = String::checkPlain($site_config->get('name')); } /** diff --git a/core/themes/seven/templates/page.html.twig b/core/themes/seven/templates/page.html.twig index 4110987..0cdf4a4 100644 --- a/core/themes/seven/templates/page.html.twig +++ b/core/themes/seven/templates/page.html.twig @@ -20,11 +20,6 @@ * Site identity: * - front_page: The URL of the front page. Use this instead of base_path when * linking to the front page. This includes the language domain or prefix. - * - logo: The url of the logo image, as defined in theme settings. - * - site_name: The name of the site. This is empty when displaying the site - * name has been disabled in the theme settings. - * - site_slogan: The slogan of the site. This is empty when displaying the site - * slogan has been disabled in theme settings. * * Page content (in order of occurrence in the default page.html.twig): * - title_prefix: Additional output populated by modules, intended to be