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/stable/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. <header role="banner">
  13. {% if logo %}
  14. <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">
  15. <img src="{{ logo }}" alt="{{ 'Home'|t }}"/>
  16. </a>
  17. {% endif %}
  18. {% if site_name or site_slogan %}
  19. {% if site_name %}
  20. <h1>
  21. <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
  22. </h1>
  23. {% endif %}
  24. {% if site_slogan %}
  25. <div>{{ site_slogan }}</div>
  26. {% endif %}
  27. {% endif %}
  28. </header>
  29. <main role="main">
  30. {% if title %}
  31. <h1>{{ title }}</h1>
  32. {% endif %}
  33. {{ page.highlighted }}
  34. {{ page.content }}
  35. </main>
  36. {% if page.sidebar_first %}
  37. <aside role="complementary">
  38. {{ page.sidebar_first }}
  39. </aside>
  40. {% endif %}
  41. {% if page.sidebar_second %}
  42. <aside role="complementary">
  43. {{ page.sidebar_second }}
  44. </aside>
  45. {% endif %}
  46. {% if page.footer %}
  47. <footer role="contentinfo">
  48. {{ page.footer }}
  49. </footer>
  50. {% endif %}