Chapter 7. Theming Our Interior Page
One of the great features of Drupal 8 is the new Twig templating engine. Simply by using the recommended file name suggestions, we saw how easy it was to theme our homepage by creating a page--front.html.twig
template. However, we are not able to use this same template for our interior pages as Drupal only renders our homepage template on the front page of our website.
Instead, we will need to create a new Twig template that all of our interior pages can use when a user is navigating our website. By default, Drupal outputs content using the page.html.twig
template. In this chapter, we will look at using the page.html.twig
template, along with discussing strategies to address the following:
- We will begin with reviewing the About Us page mockup and identify any additional components that may require custom blocks, new regions, and Twig templates.
- Then, we will take a look at reusing regions such as our header and footer as they are considered global...