maintenance-page--front.html.twig

Same filename and directory in other branches
  1. 10 core/themes/claro/templates/maintenance-page--front.html.twig
  2. 11.x core/themes/claro/templates/maintenance-page--front.html.twig

Claro's theme implementation to display the maintenance page as frontpage.

This is template 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/claro/templates/maintenance-page--front.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Claro's theme implementation to display the maintenance page as frontpage.
  5. *
  6. * This is template used for rendering the page displayed for users when the
  7. * site is under maintenance.
  8. *
  9. * All available variables are mirrored in page.html.twig.
  10. * Some may be blank but they are provided for consistency.
  11. *
  12. * @see \Drupal\Core\Theme\ThemePreprocess::preprocessMaintenancePage()
  13. */
  14. #}
  15. <div class="layout-container">
  16. <header>
  17. {% if site_name %}
  18. <h2 class="site-name site-name--subtle">{{ site_name }}</h2>
  19. {% endif %}
  20. </header>
  21. {% if page.sidebar_first %}
  22. <aside class="layout-sidebar-first">
  23. {{ page.sidebar_first }}
  24. </aside>{# /.layout-sidebar-first #}
  25. {% endif %}
  26. <main class="main-content main-content--attached">
  27. {% if title %}
  28. <h1 class="title title--broad">{{ title }}</h1>
  29. {% endif %}
  30. {{ page.highlighted }}
  31. <div class="content content--subtle">
  32. {{ page.content }}
  33. </div>
  34. </main>
  35. {% if page.page_bottom %}
  36. <footer>
  37. {{ page.page_bottom }}
  38. </footer>
  39. {% endif %}
  40. </div>{# /.layout-container #}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.