accessibility : add aria-label to entry-link

This commit is contained in:
Aditya Telange 2020-09-06 21:46:58 +05:30
parent 26aa913367
commit 519f23f8e9
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 2 additions and 2 deletions

View File

@ -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 }}

View File

@ -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 }}