$site->children()
Returns all published children
$site->children(): Kirby\Cms\PagesReturn type
This method modifies the existing $site object it is applied to and returns it again.
Parent class
<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>