Creating our homepage
The next item we will move on to is creating the main homepage template. By default, Drupal uses the page.html.twig
template to render any regions we have defined within our configuration. Because we broke out our Mockup into functional areas, we have a sense of what each region will contain. Our job is to recreate the homepage, which will require us to follow these basic theming techniques.
First, we will take advantage of Drupal's file name suggestions to create our homepage template.
Then, we will replace the contents of our template with the contents of our Mockups homepage.
Finally, we will need to review the output of our new template.
Using page templates
If we inspect the homepage, it is currently using the core page.html.twig
template to output content. But if we take advantage of the FILE NAME SUGGESTIONS
provided, we are presented with a couple of additional choices for displaying content.
The reason we are interested in alternative templates for our homepage is...