hugo.soucy.cc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator (Ferron).
Log | Files | Refs

commit 607343db0f84d932987b21ec88484404632c6c98
parent 83a756cc7e162f5afdf3fad0b950fa1a648a38de
Author: Hugo Soucy <hugo.soucy@toumoro.com>
Date:   Mon, 10 Feb 2020 21:39:10 -0500

Adds aria-current in navigation if page is current

Diffstat:
Mtemplates/partials/nav.mustache | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/templates/partials/nav.mustache b/templates/partials/nav.mustache @@ -1,6 +1,7 @@ <nav class="nav" id="menu"> {{# navigation }} <a class="nav__link" + {{# current }}aria-current="page"{{/ current }} href="{{{ location }}}" {{# attributes }}{{{ . }}}{{/ attributes }}> {{ label }} </a>