Skip to content

Commit

Permalink
move "the logo of" to locale.alt_text_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Mar 16, 2024
1 parent 86decc6 commit 66481f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _data/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ subtitle_project: Democratic Socialists of America
#addnotice: To have your blog added to this aggregator, please read $instructions
#addnotice_instructions: the instructions

alt_text_prefix: the logo of

page: Page $number

source_code: Source Code
Expand Down
2 changes: 1 addition & 1 deletion _includes/avatar.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
width="{{include.width}}"
class="{{include.class}}"
{% if post.author and post.avatar %}
alt="the logo of {{post.author}}"
alt="{{locale.alt_text_prefix}} {{post.author}}"
{% endif %}
src="{% if post.avatar contains '://' %}{% elsif post.avatar %}{{ site.baseurl }}/hackergotchi/{% else %}{{ site.baseurl }}/hackergotchi/default.png{% endif %}{{ post.avatar }}"/>

0 comments on commit 66481f5

Please sign in to comment.