Skip to content

Kirby 6.0.0

$site->homePage()

Returns the home page object

$site->homePage(): Page|null

Return types

Kirby\Cms\Pageornull

Parent class

Kirby\Cms\Site

Examples

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