Skip to content

Commit

Permalink
Add empty alt attribute to img tag with logo (mmistakes#2035)
Browse files Browse the repository at this point in the history
* Provide empty alt attribute (alt="") for logo image, because it does not provide information
  • Loading branch information
torrocus authored and mmistakes committed Jan 24, 2019
1 parent 59966ef commit 7fe11f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/masthead.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
{% if site.logo %}<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path }}"></a>{% endif %}
{% if site.logo %}<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path }}" alt=""></a>{% endif %}
<a class="site-title" href="{{ '/' | relative_url }}">{{ site.masthead_title | default: site.title }}</a>
<ul class="visible-links">
{%- for link in site.data.navigation.main -%}
Expand Down

0 comments on commit 7fe11f7

Please sign in to comment.