maintenance-page--front.html.twig
Same filename in this branch
Same filename and directory in other branches
Gin's theme implementation to display the maintenance page as frontpage.
This template is used for rendering the page displayed for users when the site is under maintenance.
All available variables are mirrored in page.html.twig. Some may be blank but they are provided for consistency.
See also
\Drupal\Core\Theme\ThemePreprocess::preprocessMaintenancePage()
File
-
core/
themes/ admin/ templates/ system/ maintenance-page--front.html.twig
View source
- {#
- /**
- * @file
- * Gin's theme implementation to display the maintenance page as frontpage.
- *
- * This template is used for rendering the page displayed for users when the
- * site is under maintenance.
- *
- * All available variables are mirrored in page.html.twig. Some may be blank but
- * they are provided for consistency.
- *
- * @see \Drupal\Core\Theme\ThemePreprocess::preprocessMaintenancePage()
- */
- #}
- <div class="layout-container">
-
- <header role="banner">
- {% if site_name %}
- <h2 class="site-name site-name--subtle">{{ site_name }}</h2>
- {% endif %}
- </header>
-
- {% if page.sidebar_first %}
- <aside class="layout-sidebar-first" role="complementary">
- {{ page.sidebar_first }}
- </aside>{# /.layout-sidebar-first #}
- {% endif %}
-
- <main role="main" class="main-content main-content--attached">
- {% if title %}
- <h1 class="title title--broad">{{ title }}</h1>
- {% endif %}
- {{ page.highlighted }}
- <div class="content content--subtle">
- {{ page.content }}
- </div>
- </main>
-
- {% if page.page_bottom %}
- <footer role="contentinfo">
- {{ page.page_bottom }}
- </footer>
- {% endif %}
-
- </div>{# /.layout-container #}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.