Skip to content

Commit

Permalink
fix: remove home menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
pReya committed Oct 23, 2023
1 parent 1015a38 commit 4ba96f5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions site/snippets/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
<ul>
<?php
$menuItems = $site->children()->listed();

if ($page->isUnlisted()) :

?>
<li class="hideOnDesktop"><a href="#"><?= $page->title()->html() ?></a></li>
<?php endif ?>
<?php

foreach ($menuItems as $menuItem) :
$subMenuItems = $menuItem->children()->listed();
$isCategory = ($menuItem->template() == 'category');
Expand Down

0 comments on commit 4ba96f5

Please sign in to comment.