Skip to content

Commit

Permalink
Fix always visible menu button in default template layout
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Jun 15, 2024
1 parent 855981d commit f522b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/templates/partials/menu.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav class="menu">
<div class="container">
<a class="menu-header" href="<?= $site->uri() ?>"><?= $this->escape($site->title()) ?></a>
<button type="button" class="button menu-toggle" data-toggle="main-menu" aria-expanded="false">&#9776;</button>
<button type="button" class="menu-toggle" data-toggle="main-menu" aria-expanded="false">&#9776;</button>
<div class="menu-list menu-collapse" id="main-menu">
<?php foreach ($site->children()->published()->listed() as $item) : ?>
<a class="<?= $this->classes(['menu-item', 'active' => $item->isCurrent()]) ?>" href="<?= $item->uri() ?>"><?= $this->escape($item->get('menu', $item->title())) ?></a>
Expand Down

0 comments on commit f522b33

Please sign in to comment.