Another method to attach a library to an individual page depends on creating a *.theme file, which allows us to use preprocess functions to manipulate page variables. We will focus a lot more on creating a *.theme file a little later, but it's important to note that we could attach the same Slick Carousel to our homepage without globally calling it using a preprocess function:
function example_preprocess_page(&$variables)
{ if ($variables['is_front'])
{ $variables['#attached']['library'][] = 'example/slick'; } }
Here, we are checking to see whether we are on the homepage of our website, and attach the Slick library using the #attached library array. Again, this may seem a little bit advanced at this point, but does merit mentioning.
The last section we will want to cover when working with any *.info.yml file is about Regions that can be defined for the layout of our theme.