$site->children() Returns all published children kirby/src/Cms/HasChildren.php#L38 $site->children(): Kirby\Cms\Pages Return type Kirby\Cms\Pages Parent class Kirby\Cms\Site <nav class="main-menu" role="navigation"> <ul> <?php foreach($site->children()->listed() as $item): ?> <li><a<?php e($item->isOpen(), ' class="active"') ?> href="<?= $item->url() ?>"><?= html($item->title()) ?></a></li> <?php endforeach ?> </ul> </nav>