aria-current=“page”

Fixes #47
This commit is contained in:
Nico Hoffmann
2022-12-09 13:43:18 +01:00
parent 8381ccb96c
commit 9cf12b9bbc

View File

@@ -78,7 +78,7 @@
*/ */
?> ?>
<?php foreach ($site->children()->listed() as $item): ?> <?php foreach ($site->children()->listed() as $item): ?>
<a <?php e($item->isOpen(), 'aria-current ') ?> href="<?= $item->url() ?>"><?= $item->title()->esc() ?></a> <a <?php e($item->isOpen(), 'aria-current="page"') ?> href="<?= $item->url() ?>"><?= $item->title()->esc() ?></a>
<?php endforeach ?> <?php endforeach ?>
<?php snippet('social') ?> <?php snippet('social') ?>
</nav> </nav>