Implementing our Headline Region
The third item we will need to address is replacing the static content in our Headline region. Referring back to the mockup, we have a responsive slider, parallax content, and a jump to the menu icon. Tackling the next section will introduce some new steps:
- First, we will address the Headline slider, which will require us to build a view to aggregate Headline content using a block display.
- Next, we will assign the new block to our Headline region and refactor the markup.
- Finally, we will add a JS library for FlexSlider to enable the responsive slider.
Creating our Headline View and Block
Drupal 8 has taken the popular Views module and integrated it into the core module system. We can take advantage of Views to aggregate ...
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.