Hi guys,
I made an onepager and this is my home template
<?php
snippet('header');
foreach($pages->visible() as $section) {
snippet($section->uid(), array('data' => $section));
}
snippet('footer');
?>
The first welcome page, which must be visible of course shouldn’t appear in the navigation. How do I do that?
menu code
<div id="offcanvas-nav-primary" uk-offcanvas="overlay: true; flip: true">
<div class="uk-offcanvas-bar uk-flex uk-flex-column">
<button class="uk-close-large uk-offcanvas-close" type="button" uk-close></button>
<ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical">
<li class="uk-nav-header">Navigation</li>
<hr>
<?php foreach($pages->visible() as $item): ?>
<li><a href="#<?= $item->title() ?>" uk-scroll><?= $item->title()->html() ?></a></li>
<?php endforeach ?>
</ul>
</div>
</div>