Add alt attr to site logo in masthead (#2824)

Co-authored-by: Michael Rose <mmistakes@users.noreply.github.com>
This commit is contained in:
iBug
2021-03-03 23:00:20 +08:00
committed by GitHub
parent 6e4aa384d0
commit 3d3cb58a2e
3 changed files with 9 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
{% unless logo_path == empty %}
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt=""></a>
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt="{{ site.masthead_title | default: site.title }}"></a>
{% endunless %}
<a class="site-title" href="{{ '/' | relative_url }}">
{{ site.masthead_title | default: site.title }}