How can I return all pages including all children?
Using <?php foreach($site->index()->visible() as $item): ?>
is only returning the first level by the looks of it.
Full Code
<?php foreach($site->index()->visible() as $item): ?>
<?php if($item->navigationinclude()->bool()): ?>
<li class="menu-navigation__item <?= r($item->isOpen(), 'is-active') ?>">
<a href="<?= $item->url() ?>" class="menu-navigation__link">
<?= $item->navigationname()->html() ?>
</a>
</li>
<?php endif ?>
<?php endforeach ?>