You are here

page--node--landing-page.html.twig in Open Social 8.5

Socialbase's theme implementation to display a landing page.

The doctype, html, head and body tags are not in this template. Instead they can be found in the html.html.twig template normally located in the core/modules/system directory.

Available variables:

General utility variables:

  • base_path: The base URL path of the Drupal installation. Will usually be "/" unless you have installed Drupal in a sub-directory.
  • is_front: A flag indicating if the current page is the front page.
  • logged_in: A flag indicating if the user is registered and signed in.
  • is_admin: A flag indicating if the user has permission to access administration pages.

Site identity:

  • front_page: The URL of the front page. Use this instead of base_path when linking to the front page. This includes the language domain or prefix.

See also

template_preprocess_page()

/html/profiles/contrib/social/themes/socialbase/templates/layout/page.html.twig

File

modules/social_features/social_landing_page/templates/page--node--landing-page.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Socialbase's theme implementation to display a landing page.
  5. *
  6. * The doctype, html, head and body tags are not in this template. Instead they
  7. * can be found in the html.html.twig template normally located in the
  8. * core/modules/system directory.
  9. *
  10. * Available variables:
  11. *
  12. * General utility variables:
  13. * - base_path: The base URL path of the Drupal installation. Will usually be
  14. * "/" unless you have installed Drupal in a sub-directory.
  15. * - is_front: A flag indicating if the current page is the front page.
  16. * - logged_in: A flag indicating if the user is registered and signed in.
  17. * - is_admin: A flag indicating if the user has permission to access
  18. * administration pages.
  19. *
  20. * Site identity:
  21. * - front_page: The URL of the front page. Use this instead of base_path when
  22. * linking to the front page. This includes the language domain or prefix.
  23. *
  24. *
  25. * @see template_preprocess_page()
  26. * @see /html/profiles/contrib/social/themes/socialbase/templates/layout/page.html.twig
  27. */
  28. #}
  29. {% if page.header %}
  30. {{ page.header }}
  31. {% endif %}
  32. <main id="content" class="main-container" role="main">
  33. {# No breadcrumbs for landing pages #}
  34. {# Hero region will be in section #}
  35. {# No secondary navigation #}
  36. {% if page.secondary_navigation %}
  37. {{ page.secondary_navigation }}
  38. {% endif %}
  39. {% if page.content_top %}
  40. {{ page.content_top }}
  41. {% endif %}
  42. {# Clear section class #}
  43. <section{{ content_attributes.removeClass('with-title-region', 'layout--with-complementary') }}>
  44. {# Page title printed in a section #}
  45. {# No side blocks #}
  46. {% block content %}
  47. <a id="main-content" tabindex="-1"></a>
  48. {{ page.content }}
  49. {% endblock %}
  50. </section>
  51. </main>
  52. {% if page.footer %}
  53. {{ page.footer }}
  54. {% endif %}