Closed misfist closed 9 months ago
@misfist
array_unshift()
- prepends passed elements to the front of the array. php.net
If there's no home.twig
template it will default to index.twig
. Think of the $templates
array as fallback list of templates. This starter theme is just emulating what WordPress already does if you review WordPress Template Hierarchy.
index.php
contains the following:So, if the current page is the home page,
home.twig
should be added in front ofindex.twig
in the$template
array, yet there is nohome.twig
template included.