Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/ghazal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2020-05-23 20:31:18 +0300
committerDarshan Baral <darshanbaral@gmail.com>2020-05-23 20:31:18 +0300
commitda79a30a47cbf69a39d453cee0b07132afbc9bae (patch)
treec9f5085abe7a039b11cfb12ea3021bfe2158e81f
parent5b9ab4e1df6ce6379d1e0587dea698e1561c5634 (diff)
Added aria labels to links with missing names
-rw-r--r--layouts/partials/breadcrumb.html1
-rw-r--r--layouts/partials/footer.html12
-rw-r--r--layouts/partials/social.html2
3 files changed, 11 insertions, 4 deletions
diff --git a/layouts/partials/breadcrumb.html b/layouts/partials/breadcrumb.html
index 32c6c5e..335b0fa 100644
--- a/layouts/partials/breadcrumb.html
+++ b/layouts/partials/breadcrumb.html
@@ -17,6 +17,7 @@
<a
href="{{ if eq .p1 .p2 }}#{{ else }}{{ .p1.Permalink }}{{ end }}"
class="breadcrumb-link {{ if eq .p1 .p2 }}active{{ end }}"
+ aria-label="{{ if .p1.IsHome }}Home{{ else }}{{ .p1.Title }}{{ end }}"
style="margin-left: 5px; font-size: 0.9em; color:{{ if eq .p1 .p2 }}var(--primaryHover){{else}}var(--primary){{ end }};"
>{{- if .p1.IsHome -}}<i>{{- partial "icons/home" . -}}</i>{{- end -}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d51d779..ad30004 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -27,8 +27,10 @@
>
</div>
- {{ if eq .Kind "page" }} {{ partial "prevnext.html" . }}
+ {{ if eq .Kind "page" }}
+ {{ partial "prevnext.html" . }}
{{ end }}
+
{{ if eq .Kind "section" }}
<div>
{{ template "_internal/pagination.html" . }}
@@ -56,9 +58,13 @@
<ul style="padding: 0;">
{{ range $key, $val := .Site.Params.social }}
<li style="list-style: none;">
- <a href="{{ $val }}" style="font-variant: small-caps;"
- >{{ partial (print "icons/" $key) . }}{{ $key }}</a
+ <a
+ href="{{ $val }}"
+ style="font-variant: small-caps;"
+ aria-label="{{ $key }}"
>
+ {{ partial (print "icons/" $key) . }}{{ $key }}
+ </a>
</li>
{{ end }}
</ul>
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 13ca40a..a116b9d 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -9,7 +9,7 @@
>
{{ range $key, $val := .Site.Params.social }}
- <a href="{{ $val }}">
+ <a href="{{ $val }}" aria-label="{{ $key }}">
<i
class="social-icon"
style="