a11y: add skipnav link

This commit is contained in:
2kool4idkwhat 2023-07-12 14:17:10 +02:00
parent f26d122b2a
commit afebeba99d
No known key found for this signature in database
GPG key ID: 5E65450311848663
3 changed files with 18 additions and 1 deletions

View file

@ -36,7 +36,7 @@
<header>
{{- partial "header.html" . -}}
</header>
<main>
<main id="maincontent">
{{- block "main" . }}{{- end }}
</main>
<footer>

View file

@ -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>