improve accessibility
All checks were successful
ci/woodpecker/push/hugo-build Pipeline was successful
All checks were successful
ci/woodpecker/push/hugo-build Pipeline was successful
This commit is contained in:
parent
9fdef1a7db
commit
41be8c98a5
2 changed files with 82 additions and 84 deletions
|
@ -81,7 +81,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
#avatar-wrapper {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
padding: inherit;
|
padding: inherit;
|
||||||
|
@ -230,7 +230,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aside {
|
|
||||||
#social-links {
|
#social-links {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
@ -312,4 +311,3 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
|
@ -1,14 +1,14 @@
|
||||||
{{ $currentPage := . }}
|
{{ $currentPage := . }}
|
||||||
|
|
||||||
<nav id="sidebar">
|
<header id="sidebar">
|
||||||
<header>
|
<div id="avatar-wrapper">
|
||||||
{{ with .Site.Params.avatar }}
|
{{ with .Site.Params.avatar }}
|
||||||
{{ $avatar := resources.Get . }}
|
{{ $avatar := resources.Get . }}
|
||||||
{{ $avatar := $avatar.Resize "96x webp" }}
|
{{ $avatar := $avatar.Resize "96x webp" }}
|
||||||
<img id="avatar" alt="{{ $.Site.Params.displayName }}" src="{{ $avatar.RelPermalink }}" />
|
<img id="avatar" alt="{{ $.Site.Params.displayName }}" src="{{ $avatar.RelPermalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</div>
|
||||||
<section id="sidebar-menu">
|
<nav id="sidebar-menu" aria-labelledby="primary-navigation">
|
||||||
<ul>
|
<ul>
|
||||||
{{- range .Site.Menus.main }}
|
{{- range .Site.Menus.main }}
|
||||||
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
|
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</nav>
|
||||||
<aside>
|
<div>
|
||||||
<section id="social-links">
|
<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>
|
<a class="hint-text" rel="me" href="https://social.anoxinon.de/@vri" aria-label="Mastodon">{{ partial "helpers/icons" "mastodon" }}</a>
|
||||||
</section>
|
</nav>
|
||||||
<section id="languages">
|
<div id="languages">
|
||||||
{{- if .Site.IsMultiLingual }}
|
{{- if .Site.IsMultiLingual }}
|
||||||
{{ $siteLanguages := .Site.Languages }}
|
{{ $siteLanguages := .Site.Languages }}
|
||||||
{{ $pageLanguage := .Page.Lang }}
|
{{ $pageLanguage := .Page.Lang }}
|
||||||
|
@ -39,6 +39,6 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</section>
|
</div>
|
||||||
</aside>
|
</div>
|
||||||
</nav>
|
</header>
|
||||||
|
|
Loading…
Reference in a new issue