From 201aefa639fe60f1d641d50d5fa5b4070590ac00 Mon Sep 17 00:00:00 2001
From: Harsh Shandilya <me@msfjarvis.dev>
Date: Fri, 22 May 2020 12:10:10 +0000
Subject: [PATCH] layouts: set aria-label correctly for screen readers to work
---
layouts/partials/sidebar.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index dc3bc4e..b4e595b 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -10,8 +10,8 @@
</div>
<ul class="social-links">
{{ range $item := .Site.Params.socialIcons }}
- <a href="{{ $item.url }}" rel="me" >
- <i class="fa fa-2x {{ $item.icon }}" aria-hidden="true" title="{{ $item.title }}"></i>
+ <a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}">
+ <i class="fa fa-2x {{ $item.icon }}" aria-hidden="true"></i>
</a>
{{ end }}
</ul>
--
Gitblit v1.10.0