aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAnthony Wang2024-11-04 01:25:15 -0500
committerAnthony Wang2024-11-04 01:25:15 -0500
commit38e0c1e1acc559cbbf284811d4636c5238a57e48 (patch)
tree2fde05183d0145a2b9f6f74a656702dfee353941 /layouts
parentb9e5f95b862f0c87136f797b6d4b1608fc3a71df (diff)
Update layouts to match upstream theme
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html10
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>