Rethinking our layout

Often, we will find ourselves having to rethink over the layout we are trying to accomplish while first creating a starter theme. In fact, creating a starter theme can actually be challenging at first with a lot of trial and error. Implementing our Jumbotron is quite a perfect example of trying to fit a square peg in a round hole. While Drupal will allow us to accomplish layouts in half a dozen different ways, we always want to follow the best practices.

After taking a look at the Jumbotron example again, we can actually break it down into more manageable and reusable components. To begin with, the Jumbotron example is to represent a homepage layout with one row for the Jumbotron and another row containing three blocks of ...

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.