Skip to content

Commit cf569ac

Browse files
Tauromachianminimaluminium
authored andcommitted
Added aria-label for the avatar/image of the author to post.hbs
no issue - Improve accessibility - Improve SEO (by improving accessibility)
1 parent 276e2c9 commit cf569ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

post.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ into the {body} tag of the default.hbs template --}}
3636
{{#foreach authors}}
3737
<li class="author-list-item">
3838
{{#if profile_image}}
39-
<a href="{{url}}" class="author-avatar">
39+
<a href="{{url}}" class="author-avatar" aria-label="Read more of {{name}}">
4040
<img class="author-profile-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
4141
</a>
4242
{{else}}
43-
<a href="{{url}}" class="author-avatar author-profile-image">{{> "icons/avatar"}}</a>
43+
<a href="{{url}}" class="author-avatar author-profile-image" aria-label="Read more of {{name}}">{{> "icons/avatar"}}</a>
4444
{{/if}}
4545
</li>
4646
{{/foreach}}
@@ -137,4 +137,4 @@ into the {body} tag of the default.hbs template --}}
137137
{{/get}}
138138
{{/if}}
139139

140-
{{/post}}
140+
{{/post}}

0 commit comments

Comments
 (0)