You are here

root.twig in Open Social 8.6

Component for an HTML document.

Variables:

  • html_attributes: [string] Attributes for the HTML element.
  • title: [string] The page title.
  • attributes: [string] Attributes for the BODY element.
  • content: [string] The component contents.

File

themes/socialbase/components/01-base/root/root.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Component for an HTML document.
  5. *
  6. * Variables:
  7. * - html_attributes: [string] Attributes for the HTML element.
  8. * - title: [string] The page title.
  9. * - attributes: [string] Attributes for the BODY element.
  10. * - content: [string] The component contents.
  11. */
  12. #}
  13. <!DOCTYPE html>
  14. <html {{ html_attributes }}>
  15. <head>
  16. {% block head %}
  17. <title>{{ title }}</title>
  18. {% endblock %}
  19. </head>
  20. <body {{ attributes }}>
  21. {% block body %}
  22. {{ content }}
  23. {% endblock %}
  24. </body>
  25. </html>