improve accessibility
All checks were successful
ci/woodpecker/push/hugo-build Pipeline was successful

This commit is contained in:
Vri 🌈 2023-05-18 13:17:48 +02:00
parent 9fdef1a7db
commit 41be8c98a5
Signed by: vrifox
GPG key ID: D40098E5B60B2197
2 changed files with 82 additions and 84 deletions

View file

@ -81,7 +81,7 @@
}
}
header {
#avatar-wrapper {
text-align: center;
user-select: none;
padding: inherit;
@ -230,7 +230,6 @@
}
}
}
aside {
#social-links {
text-align: center;
@ -312,4 +311,3 @@
}
}
}
}

View file

@ -1,14 +1,14 @@
{{ $currentPage := . }}
<nav id="sidebar">
<header>
<header id="sidebar">
<div id="avatar-wrapper">
{{ with .Site.Params.avatar }}
{{ $avatar := resources.Get . }}
{{ $avatar := $avatar.Resize "96x webp" }}
<img id="avatar" alt="{{ $.Site.Params.displayName }}" src="{{ $avatar.RelPermalink }}" />
{{ end }}
</header>
<section id="sidebar-menu">
</div>
<nav id="sidebar-menu" aria-labelledby="primary-navigation">
<ul>
{{- range .Site.Menus.main }}
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
@ -18,12 +18,12 @@
{{ end }}
{{- end }}
</ul>
</section>
<aside>
<section id="social-links">
</nav>
<div>
<nav id="social-links" aria-labelledby="social-links">
<a class="hint-text" rel="me" href="https://social.anoxinon.de/@vri" aria-label="Mastodon">{{ partial "helpers/icons" "mastodon" }}</a>
</section>
<section id="languages">
</nav>
<div id="languages">
{{- if .Site.IsMultiLingual }}
{{ $siteLanguages := .Site.Languages }}
{{ $pageLanguage := .Page.Lang }}
@ -39,6 +39,6 @@
{{ end }}
{{ end }}
{{- end }}
</section>
</aside>
</nav>
</div>
</div>
</header>