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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,9 @@
## Unreleased ## Unreleased
### Enhancements
- Add `alt` attribute to site logo. [#2529](https://github.com/mmistakes/minimal-mistakes/issues/2529) [#2824](https://github.com/mmistakes/minimal-mistakes/issues/2824)
### Bug Fixes ### Bug Fixes
- Remove Google Search CSS. [#2852](https://github.com/mmistakes/minimal-mistakes/issues/2852) [#2855](https://github.com/mmistakes/minimal-mistakes/pull/2855) - Remove Google Search CSS. [#2852](https://github.com/mmistakes/minimal-mistakes/issues/2852) [#2855](https://github.com/mmistakes/minimal-mistakes/pull/2855)

View file

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

View file

@ -11,6 +11,10 @@ toc: false
## Unreleased ## Unreleased
### Enhancements
- Add `alt` attribute to site logo. [#2529](https://github.com/mmistakes/minimal-mistakes/issues/2529) [#2824](https://github.com/mmistakes/minimal-mistakes/issues/2824)
### Bug Fixes ### Bug Fixes
- Remove Google Search CSS. [#2852](https://github.com/mmistakes/minimal-mistakes/issues/2852) [#2855](https://github.com/mmistakes/minimal-mistakes/pull/2855) - Remove Google Search CSS. [#2852](https://github.com/mmistakes/minimal-mistakes/issues/2852) [#2855](https://github.com/mmistakes/minimal-mistakes/pull/2855)