diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 47446f0..45efe59 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -24,7 +24,7 @@ <div class="nav-links"> {{ range .Site.Menus.main }} <div class="nav-link"> - <a href="{{ .URL | absURL }}" {{ if .Params.NewPage -}}target="_blank" {{- end -}}> + <a href="{{ .URL | absURL }}" aria-label="{{ .Identifier }}" {{ if .Params.NewPage -}}target="_blank" {{- end -}}> {{- .Pre | safeHTML }} {{ .Name }} {{ .Post | safeHTML -}} </a> </div> @@ -32,15 +32,15 @@ <span class="nav-icons-divider"></span> <div class="nav-link dark-theme-toggle"> - <span class="sr-only dark-theme-toggle-screen-reader-target"></span> - <a> + <span class="sr-only dark-theme-toggle-screen-reader-target">theme</span> + <a aria-hidden="true" role="switch"> <span class="theme-toggle-icon" data-feather="moon"></span> </a> </div> <div class="nav-link" id="hamburger-menu-toggle"> <span class="sr-only hamburger-menu-toggle-screen-reader-target">menu</span> - <a> + <a aria-checked="false" aria-labelledby="hamburger-menu-toggle" id="hamburger-menu-toggle-target" role="switch"> <span data-feather="menu"></span> </a> </div> @@ -56,7 +56,7 @@ {{ end }} <li class="nav-item dark-theme-toggle"> <span class="sr-only dark-theme-toggle-screen-reader-target">theme</span> - <a> + <a role="switch"> <span class="theme-toggle-icon" data-feather="moon"></span> </a> </li> |