From e263209a4042c12a265a61eee9c748c6edf247f2 Mon Sep 17 00:00:00 2001
From: Oscar Najera <hi@oscarnajera.com>
Date: Tue, 21 Jan 2025 23:34:24 +0100
Subject: More on accessibility

---
 layouts/partials/author_card.html  | 4 ++--
 layouts/partials/header.html       | 6 +++++-
 layouts/partials/metadata.html     | 4 ++--
 layouts/partials/social_links.html | 2 ++
 4 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html
index 10a6c06..bc8073a 100644
--- a/layouts/partials/author_card.html
+++ b/layouts/partials/author_card.html
@@ -15,11 +15,11 @@
     >
       {{ .name }}
     </a>
-    <p class="text-lg font-light p-0 m-0">{{ .role | markdownify }}</p>
+    <p class="font-light p-0 m-0">{{ .role | markdownify }}</p>
     <p class="mt-3">
       {{ .bio }}
     </p>
-    <div class="text-xl mt-4">
+    <div class="text-2xl mt-4">
       {{ partial "social_links" . }}
     </div>
   </div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 33f5ad2..f3c929a 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -23,7 +23,11 @@
       class="menu bg-lime-700 md:w-fit md:flex-row md:max-h-none md:static top-12"
     >
       {{ range .Site.Menus.main }}
-        <a class="hover:bg-lime-500 p-4" href="{{ .PageRef | relLangURL }}">
+        <a
+          class="hover:bg-lime-500 p-4"
+          href="{{ .PageRef | relLangURL }}"
+          {{ with .Identifier }}aria-label="{{ . }}"{{ end }}
+        >
           {{ .Pre }}
           {{- T .Name | title -}}
         </a>
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
index 8679be6..ec2d54a 100644
--- a/layouts/partials/metadata.html
+++ b/layouts/partials/metadata.html
@@ -37,7 +37,7 @@
 
   {{ with .GetTerms "tags" }}
     |
-    <a href="/tags" class="text-lime-500 px-1">
+    <a href="/tags" class="text-lime-500 px-1" aria-label="tags">
       <i class="fas fa-tags"></i>
     </a>
     {{ range . }}
@@ -49,7 +49,7 @@
 
   {{ with .GetTerms "categories" }}
     |
-    <a href="/categories" class="text-lime-500 px-1">
+    <a href="/categories" class="text-lime-500 px-1" aria-label="categories">
       <i class="fas fa-folder-open"></i>
     </a>
     {{ range . }}
diff --git a/layouts/partials/social_links.html b/layouts/partials/social_links.html
index 9758891..9a125b7 100644
--- a/layouts/partials/social_links.html
+++ b/layouts/partials/social_links.html
@@ -10,6 +10,8 @@
   <a
     href="{{ $link | safeURL }}"
     {{ $target | safeHTMLAttr }}
+    class="mx-1"
+    aria-label="{{ .label }}"
   >
     <i class="{{ .icon_class }}"></i>
   </a>
-- 
cgit v1.2.3