Skip to content

Kirby 4.5.0

$site->homePage()

Returns the home page object

$site->homePage(): Kirby\Cms\Page|null

Return type

Kirby\Cms\Page|null

Parent class

Kirby\Cms\Site

Example

<?= $site->homePage()->text() ?>