diff options
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7b35a2a..58625fe 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,16 @@ <nav> - <a href="{{ .Site.Home.RelPermalink | absLangURL }}" >{{ .Site.Title }}</a> + {{ $current := .RelPermalink }} + {{ if eq $current .Site.Home.RelPermalink }} + <a aria-current="page">{{ .Site.Title }}</a> + {{ else }} + <a href="{{ .Site.Home.RelPermalink }}" >{{ .Site.Title }}</a> + {{ end}} + {{ range .Site.Menus.main }} - <a href="{{ .URL | absLangURL }}">{{ .Title }}</a> + {{ if eq $current .URL }} + <a aria-current="page">{{ .Title }}</a> + {{ else }} + <a href="{{ .URL }}">{{ .Title }}</a> + {{ end }} {{ end }} </nav> |