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 ...

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.