Creating the Homepage Listing Template

We start building the template components with the homepage. This covers building out the

The home­page tem­plate, which is index.twig in the root our of templates direc­to­ry, is the first tem­plate in a series of tem­plates that make the full home­page render.

The home­page tem­plate first extends the _layout.twig tem­plate. After that it iter­ates over the sec­tion entries that we want to have appear on the home­page and then includes the item tem­plate and hands over the work of ren­der­ing the content.

Transcript

Premium

Follow along with the full transcript

Search every word, click any line to jump to that moment, and read along as you watch — a CraftQuest Premium feature.

Sign up for Premium
Topic
Instructor
Level
Intermediate
Date Published
February 12, 2021