Creating our interior page template

Drupal provides us with multiple ways to address templating a specific page. As we saw when we created our homepage, we can take advantage of Twig debugging to identify which templates are being output. The same is true for our interior pages. If we navigate to the About Us page and inspect the markup we can identify that Drupal is using the default page.html.twig template, as shown in the following image:

Creating our interior page template

This template is clearly different than the page--front.html.twig template we created earlier, which explains why some of our page elements are missing. However, this is a good example of how we can use different ...

Get Drupal 8 Theming with Twig now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.