diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-06 21:46:58 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-06 21:46:58 +0530 |
| commit | 519f23f8e96ce87e795c3fd32e07990282fcd9b9 (patch) | |
| tree | d5bb39b14960a3402c16afd512604279dcce8df4 /layouts/_default | |
| parent | 26aa913367bc7fdafbe566de517af8b9dcede935 (diff) | |
accessibility : add aria-label to entry-link
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/archives.html | 2 | ||||
| -rw-r--r-- | layouts/_default/list.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index f2db38f..4a7b122 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -24,7 +24,7 @@ ยท {{ end }} {{- .Date.Format "January 2, 2006" -}} </div> - <a class="entry-link" href="{{ .Permalink }}"></a> + <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> </div> {{ end }} {{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c0908c9..c00e02f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -49,7 +49,7 @@ {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}{{ end }} {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} </footer> - <a class="entry-link" href="{{ .Permalink }}"></a> + <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> </article> {{- end }} |
