Skip to content

Commit

Permalink
Added aria-label for the avatar/image of the author to post.hbs
Browse files Browse the repository at this point in the history
no issue

- Improve accessibility
- Improve SEO (by improving accessibility)
  • Loading branch information
Tauromachian authored and minimaluminium committed Nov 21, 2023
1 parent 276e2c9 commit cf569ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ into the {body} tag of the default.hbs template --}}
{{#foreach authors}}
<li class="author-list-item">
{{#if profile_image}}
<a href="{{url}}" class="author-avatar">
<a href="{{url}}" class="author-avatar" aria-label="Read more of {{name}}">
<img class="author-profile-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
</a>
{{else}}
<a href="{{url}}" class="author-avatar author-profile-image">{{> "icons/avatar"}}</a>
<a href="{{url}}" class="author-avatar author-profile-image" aria-label="Read more of {{name}}">{{> "icons/avatar"}}</a>
{{/if}}
</li>
{{/foreach}}
Expand Down Expand Up @@ -137,4 +137,4 @@ into the {body} tag of the default.hbs template --}}
{{/get}}
{{/if}}

{{/post}}
{{/post}}

0 comments on commit cf569ac

Please sign in to comment.