You are here

maintenance-page.html.twig in Drupal 10

Theme override to display a single Drupal page while offline.

All available variables are mirrored in page.html.twig. Some may be blank but they are provided for consistency.

File

core/themes/starterkit_theme/templates/layout/maintenance-page.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a single Drupal page while offline.
  5. *
  6. * All available variables are mirrored in page.html.twig.
  7. * Some may be blank but they are provided for consistency.
  8. *
  9. * @see template_preprocess_maintenance_page()
  10. */
  11. #}
  12. <div class="layout-container">
  13. <header role="banner">
  14. {% if logo %}
  15. <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">
  16. <img src="{{ logo }}" alt="{{ 'Home'|t }}"/>
  17. </a>
  18. {% endif %}
  19. {% if site_name or site_slogan %}
  20. <div class="name-and-slogan">
  21. {% if site_name %}
  22. <h1 class="site-name">
  23. <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
  24. </h1>
  25. {% endif %}
  26. {% if site_slogan %}
  27. <div class="site-slogan">{{ site_slogan }}</div>
  28. {% endif %}
  29. </div>{# /.name-and-slogan #}
  30. {% endif %}
  31. </header>
  32. <main role="main">
  33. {% if title %}
  34. <h1>{{ title }}</h1>
  35. {% endif %}
  36. {{ page.highlighted }}
  37. {{ page.content }}
  38. </main>
  39. {% if page.sidebar_first %}
  40. <aside class="layout-sidebar-first" role="complementary">
  41. {{ page.sidebar_first }}
  42. </aside>{# /.layout-sidebar-first #}
  43. {% endif %}
  44. {% if page.sidebar_second %}
  45. <aside class="layout-sidebar-second" role="complementary">
  46. {{ page.sidebar_second }}
  47. </aside>{# /.layout-sidebar-second #}
  48. {% endif %}
  49. {% if page.footer %}
  50. <footer role="contentinfo">
  51. {{ page.footer }}
  52. </footer>
  53. {% endif %}
  54. </div>{# /.layout-container #}