Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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

template_preprocess_maintenance_page()

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 template_preprocess_maintenance_page()
  13. */
  14. #}
  15. <div class="layout-container">
  16. <header role="banner">
  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" role="complementary">
  23. {{ page.sidebar_first }}
  24. </aside>{# /.layout-sidebar-first #}
  25. {% endif %}
  26. <main role="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 role="contentinfo">
  37. {{ page.page_bottom }}
  38. </footer>
  39. {% endif %}
  40. </div>{# /.layout-container #}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal