Summary

When we first started our homepage, it seemed to be a daunting task filled with deciding how we should convert our mockup into a dynamic rendition of blocks, regions, Twig templates, and variables. We learned through repetition that such a daunting task is actually not that complicated after all. In this chapter, we accomplished the following:

  • We worked with site branding by adding our logo, creating Twig templates for blocks, and refactoring markup.
  • We learned best practices to add assets with libraries, custom scripts, and scripts to our website and individual pages.
  • We discovered how to develop the aggregated content using Views, create Block layouts from Views, and format the output of Views content for use with JavaScript libraries. ...

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.