aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorCaio Lente <7017340+clente@users.noreply.github.com>2023-09-29 19:49:56 -0300
committerGitHub <noreply@github.com>2023-09-29 19:49:56 -0300
commit6f2e7d0c6fe3ef16fa414d75d9647398df857c39 (patch)
tree305998c936bf2f1e8465eae74590790cf5b11f80 /layouts
parent21c4876a084efadbb1559989850fdc8baf3e43d6 (diff)
parentafebeba99d57247abee53a6857f586ed964edee4 (diff)
downloadhugo-bearcub-6f2e7d0c6fe3ef16fa414d75d9647398df857c39.tar.gz
hugo-bearcub-6f2e7d0c6fe3ef16fa414d75d9647398df857c39.tar.bz2
Merge pull request #5 from 2kool4idkwhat/main
a11y: add a "skip to main content" link
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/header.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 7aa0605..06d71c3 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -36,7 +36,7 @@
<header>
{{- partial "header.html" . -}}
</header>
- <main>
+ <main id="maincontent">
{{- block "main" . }}{{- end }}
</main>
<footer>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index fccb41f..1db41b2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,2 +1,4 @@
+<a class="skiplink" href="#maincontent">Skip to Main Content</a>
+
<a href="{{ relURL .Site.Home.Permalink }}" class="title"><h1>{{ .Site.Title }}</h1></a>
<nav>{{- partial "nav.html" . -}}</nav>