1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Improve semantics/a11y of site header/footer

- Make footer links a list element
- Make header aria-label less redundant
- Give footer links a label
This commit is contained in:
Rohan Kumar 2022-04-22 08:49:27 -07:00
parent d3806e630c
commit f10de9f2e2
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 21 additions and 8 deletions

View file

@ -1,11 +1,24 @@
<footer id="site-footer">
<p>
Copyright<span aria-hidden="true"> ©</span> <span itemprop="copyrightYear">{{now.Year}}</span> <span itemprop="copyrightHolder">{{- partial "indieweb-author.html" -}}</span> ·
<span itemprop="license" itemscope itemtype="https://schema.org/CreativeWork"><a rel="license" itemprop="url" href="https://creativecommons.org/licenses/by-sa/4.0/"><span itemprop="name">CC BY-SA 4.0 license</span></a></span> ·
<span itemscope itemtype="https://schema.org/SoftwareSourceCode">
<a itemprop="codeRepository" rel="source" href="{{ .Site.Params.src }}">source code</a> ·
</span>
<a rel="alternate" href="http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion{{ .RelPermalink }}">Tor</a> ·
<a href="{{ site.BaseURL }}privacy.html">Privacy</a>
Copyright<span aria-hidden="true"> ©</span> <span itemprop="copyrightYear">{{now.Year}}</span> <span itemprop="copyrightHolder">{{- partial "indieweb-author.html" -}}</span>
</p>
<nav aria-label="site info">
<ul class="unstyled-list">
<li itemprop="license" itemscope itemtype="https://schema.org/CreativeWork">
<a rel="license" itemprop="url" href="https://creativecommons.org/licenses/by-sa/4.0/"><span itemprop="name">CC BY-SA 4.0 license</span></a>
</li>
<li itemscope itemtype="https://schema.org/SoftwareSourceCode">
<a itemprop="codeRepository" rel="source" href="{{ .Site.Params.src }}">Source code</a>
</li>
<li>
<a rel="alternate" href="http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion{{ .RelPermalink }}">Tor</a>
</li>
<li>
<a href="{{ site.BaseURL }}privacy.html">Privacy</a>
</li>
<li>
<a href="{{ site.BaseURL }}about.html#location-seirdy-online">Contact</a>
</li>
</ul>
</nav>
</footer>

View file

@ -1,6 +1,6 @@
<header id="banner" itemscope itemtype="https://schema.org/WPHeader">
<a href="#content" class="skip">Skip to content</a>
<nav aria-label="Main navigation">
<nav aria-label="Global">
<ul class="unstyled-list">
{{- $currentPage := . -}}
{{- $isHome := false -}}