mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-14 01:32:11 +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:
parent
d3806e630c
commit
f10de9f2e2
2 changed files with 21 additions and 8 deletions
|
@ -1,11 +1,24 @@
|
||||||
<footer id="site-footer">
|
<footer id="site-footer">
|
||||||
<p>
|
<p>
|
||||||
Copyright<span aria-hidden="true"> ©</span> <span itemprop="copyrightYear">{{now.Year}}</span> <span itemprop="copyrightHolder">{{- partial "indieweb-author.html" -}}</span> ·
|
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>
|
|
||||||
</p>
|
</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>
|
</footer>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<header id="banner" itemscope itemtype="https://schema.org/WPHeader">
|
<header id="banner" itemscope itemtype="https://schema.org/WPHeader">
|
||||||
<a href="#content" class="skip">Skip to content</a>
|
<a href="#content" class="skip">Skip to content</a>
|
||||||
<nav aria-label="Main navigation">
|
<nav aria-label="Global">
|
||||||
<ul class="unstyled-list">
|
<ul class="unstyled-list">
|
||||||
{{- $currentPage := . -}}
|
{{- $currentPage := . -}}
|
||||||
{{- $isHome := false -}}
|
{{- $isHome := false -}}
|
||||||
|
|
Loading…
Reference in a new issue