Skip to content

Kirby 4.4.1

$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() ?>