I've succesfully implemented my own theme into SilverStripe and I am trying to find out how $Layout works.
Suppose I have Page.ss in my template folder with the following
<html>
<body>
$Layout
</body>
A Page.ss as follows template_name/Templates/Layout/Page.ss
I am any other page than the homepage!
A HomePage.ss as follows: template_name/Templates/Layout/HomePage.ss
I am the homepage!
I assumed that when you have a file named "HomePage.ss" in the Layout folder, this will always be the rendered page (on the spot of $Layout in the main Page.ss) when visiting the homepage of the site. But when opening my site, the Layout/Page.ss is always rendered. Was my assumption incorrect?