mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Improve icons accessibility (#127)
This commit is contained in:
committed by
GitHub
parent
b9a232b582
commit
1647f2f112
@@ -9,9 +9,15 @@
|
||||
<ul>
|
||||
{{ range sort .}}
|
||||
{{ if .icon }}
|
||||
<li><a href="{{ .url }}"><i class="{{ .icon }}"></i></a></li>
|
||||
<li>
|
||||
<a href="{{ .url }}" aria-label="{{ .name }}">
|
||||
<i class="{{ .icon }}" aria-hidden></i>
|
||||
</a>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li><a href="{{ .url }}">{{ .name }}</a></li>
|
||||
<li>
|
||||
<a href="{{ .url }}" aria-label="{{ .name }}">{{ .name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user